Ive been searching for a while for a simple example on how to reuse views from xib files in my storyboard but all i find was outdated or dosen't solve my problem the situation is that I has simple:
- I have a viewController in my storyboard
- I dragged to it two view from the library
- I had created a myCustomView.xib and myCustomView.swift file (they are empty now)
- I have I button on viewController (so the tree (two view and one button) are setting together on the viewController in the storyboard)
- the question is: I want one view to be loaded dynamically on app launch and the other one to be loaded on button click
- an other question: how can I connect myCustomView to that viewController
thank you