I\'m trying to achieve similar positioning behavior as the bottom text input bar in Apple\'s Messages app.
I have tried many approaches, searched high and low and th
There's an excellent, easy-to-implement, open-source solution to this from the good folks at Slack: SlackTextViewController.
Here's how to implement a view with a docked toolbar in four steps:
Create a MessageViewController that inherits from SLKTextViewController, no need to write any more code than this:
import Foundation
import UIKit
class MessageViewController: SLKTextViewController {
required init(coder aDecoder: NSCoder!) {
super.init(coder: aDecoder)
}
}
Props to the team at Slack for extracting such a useful pod.