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.

Required fields*

2
  • Well done for not only marking init as private, but also for making the sharedMyModel as final! For the sake of future readers, in Swift 3, we might be inclined to rename sharedMyModel to be simply shared. Commented Nov 11, 2016 at 9:16
  • This is the only correct answer, except that the override and call to super.init are erroneous and will not even compile. Commented Apr 16, 2017 at 14:47