Well, Crap, what a waste of time One would guess that I should have known better with the work experience I accumulated in the software engineering field.
But, it’s Friday evening, after our social team meeting, and I am still excited to finish something substantial for this feature that I’m working. Lots of moving parts, refactored code, loose ends, and hastily glued together code without any safety net. A couple of new unit tests for the new feature and some legacy code that I have to touch.
Designing a Spacer for my AxiDraw Plotter I have an AxiDraw V3/A3 Penplotter that I bought to satisfy a desire to own such a fantastic machine. It started in my teen years working with HP Plotters in our university lab at the TUHH. I could not afford an HP Plotter back in the day, so that desire was never satisfied.
Jumping forward to today: I bought the AxiDraw Plotter in the Summer of 2021, and I ordered the Magnetic Easel.
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.