How can I use an Outlet Collection with labels and buttons in one collection?

232 Views Asked by At

I am trying to make an Outlet collection that consists of labels and buttons. I was thinking I could just do something like @IBOutlet var basicCollection: [Any]! this doesn't seem to work. Any idea would be great.

1

There are 1 best solutions below

0
matt On BEST ANSWER

Try

@IBOutlet var basicCollection: [UIView]!

Works for me.