Implement post editing in Swift.