today is tomorrow's past

today is tomorrow's past

I help people create remarkable things. Focus on the customer and quality. Opinions are my own. Photography is my other passion.

3-Minute Read

Nevada Falls Yosemite National Park TL;DR Adding Swift Code to Objective-C Project Ensure your Swift class derives direct or indirect from NSObject Ensure your Swift class is public to ensure the YourProjectName-Swift.h header generation Prefix the class to expose it to Objective-C. Any Property or method needs its own @objc annotation to be visible from Objective-C. Use the @objcMembers annotation to expose all properties and methods of the Swift class Reminder for myself I learned a couple of essential things about mixing Objective-C and Swift in one project.

Recent Posts

Categories

About

Always something to think about