With many iOS UIKit, and Mac AppKit classes there are only small differences of name, and syntax so code can be converted easily between the two platforms, but it can be tedious.
Here’s an open source library that provides a number of functions to simplify cross-platform iOS-Mac development in Swift called X from Sam Soffes.
X provides a set of types using type alias, and in some cases adding in custom functions so that you don’t have to worry about name differences, and other small differences when creating code for colors, fonts, gesture recognizers, images, and views when using AppKit and UIKit.
You can find X on Github here.
A nice library for those creating cross-platform Mac and iOS apps.
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.