Tutorial by Examples

If you have an existing class that you'd like to use, perform Step 2 and then skip to Step 5. (For some cases, I had to add an explicit #import <Foundation/Foundation.h to an older ObjC File) Step 1: Add Objective-C Implementation -- .m Add a .m file to your class, and name it CustomObje...
Step 1: Create New Swift Class Add a .swift file to your project, and name it MySwiftObject.swift In MySwiftObject.swift: import Foundation class MySwiftObject : NSObject { var someProperty: AnyObject = "Some Initializer Val" init() {} func someFunction(someArg...

Page 1 of 1