Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Could you elaborate? I don't fully understand "Make sure your Swift class inherits from a class that derives (directly or indirectly) from NSObject." Commented Oct 4, 2019 at 9:50
  • @WhipperSnapper in simple words you cannot use Swift features that are not defined in Obj-C (e.g. classes with no inheritance, Swift generics, enums without Int types, etc). So regarding the documentation Obj-C class should has a root class. You can just define your class as class UserDefaultFactory: NSObject or use any needed child of NSObject. Commented Oct 4, 2019 at 10:05