swift: how to create an interactive iMessage application

File->New->Project and choose “iMessage Application”.
You already have view controller, actually MSMessagesAppViewController. Although, to better support both minimized and expanded views, it’s easier to create another “view controller” just for “collapsed” view, so in the main MSMessagesAppViewController you can control this situation with help of the following:

1. First of all in you mini view controller it’s a good idea to have delegate to the main one and storyboard id:

class MiniViewController : UICollectionViewController {
    // TODO: add loading view / indicator? Might be useless - needed for debug only.
    static let storyboardIdentifier = "MiniViewController"
    var delegate : MessagesViewController?
    override func viewDidLoad() {

Continue reading “swift: how to create an interactive iMessage application”

Social Share Toolbar