How create complex ui interface in swift ?

Hi. How can we set structure complex in ui. For example, if we imagine have app's main content contains some ui - different collection views, another sections and end of all we have comments which is shows another page's bottom area.

I think I'll solve it with creating different viewcontrollers - one for collection views, another for comment section... and with addchild i'll add all of that to Main controller.

  1. Is this way is well ?

  2. CommentController which is gets comments and adding that section to some controller what i want. is this right ?

Answered by Claude31 in 676170022

Finally, we can have images in the forum. That's a GREAT plus.

Yes, you can define different VC for each object.

You can also:

  • create the objects in IB: there are several TableViews, several Collection views
  • Some may be a subclass of UITableView, UICollectionView, …
  • If needed, create Views in IB, to embed some elements which are logically linked
  • connect each object to its IBOutlet
Accepted Answer

Finally, we can have images in the forum. That's a GREAT plus.

Yes, you can define different VC for each object.

You can also:

  • create the objects in IB: there are several TableViews, several Collection views
  • Some may be a subclass of UITableView, UICollectionView, …
  • If needed, create Views in IB, to embed some elements which are logically linked
  • connect each object to its IBOutlet

Don't bother, use a hybrid web app development toolkit. Native iOS development is so ridiculously complicated and convoluted that you'll want to die once every 5 minutes. Do yourself a favour and use something like React.

How create complex ui interface in swift ?
 
 
Q