3

In an appkit storyboard targeting mac os x 10.10+.

Is there a way to have InterfaceBuilder instantiate a custom model object and then have InterfaceBuilder inject the instance in to multiple view controllers as IBOutlets?

I can only get it to work in a single scene (controller).

Basically I want to use InterfaceBuilder as a graphical IOC Container.

Swift Dev Journal
  • 19,282
  • 4
  • 56
  • 66
weenzeel
  • 797
  • 5
  • 17

0 Answers0