I declare this day a fine day having discovered non-Objective-C protocols! No more @objc protocol usage. Now it’s as simple as something like this: protocol myDelegate { func report(info:String) } class MyClass: NSObject { var delegate:myDelegate? var serviceType = “hephaestus” …

Protocol/delegates in Swift 3.0 Read more »

Tagged with:

Recently I have been developing an iOS app that comes with a companion Apple Watch extension. I wanted to play with the communication between iOS and WatchOS using func session(session:WCSession, didReceiveMessage message:[String:AnyObject]) via WatchConnectivity It was working well and I thought …

Swift: When you have an Optional String you need to remove Read more »