I have a class (NavBar) with a couple variables that I want to place in an array. I am currently getting this error.
'Instance member buttonOne cannot be used on type NavBar'
The code throwing the error is as follows.
// Buttons
var buttonOne: Button?
var buttonTwo: Button?
var buttonThree: Button?
var buttonFour: Button?
var buttonFive: Button?
var buttonsArray: [Button] = [buttonOne, buttonTwo, buttonThree, buttonFour, buttonFive]