mho000 / MHImageTabBar

UITabBarController Replacement
MIT License
26 stars 12 forks source link

Converted to Swift 3 #5

Open xergic opened 8 years ago

xergic commented 8 years ago

Converted sources to Swift 3, mostly renaming...

Just want to point out one important thing which caused this to crash. You now need to explicitly declare Dictionary of views (line 137) like this: let views: [String: UIView]. This caused me a serious headache for a while 😁

mho000 commented 8 years ago

Thanks @xergic. Yes the declaration is necessary. It happens for the change implicitly unwrapped optionals. The inferred type is now [String: UIView?].