'Can you declare an array inside of a struct? swift

I am trying to create a black jack game and I want to put an array inside of a brains struct





 let aceClubs = 1
    let twoClubs = 2
    let threeClubs = 3
    let fourClubs = 4
    let fiveClubs = 5
    let sixClubs = 6
    let sevenClubs = 7
    let eightClubs = 8
    let nineClubs = 9
    let tenClubs = 10
    let kingClubs = 10
    let queenClubs = 10
    let jackClubs = 10

    var DeckOfCards = [aceClubs, twoClubs, threeClubs, fourClubs, fiveClubs, sixClubs, sevenClubs, eightClubs, nineClubs, tenClubs, kingClubs, queenClubs, jackClubs]






but it keeps popping up with the error code Cannot use instance member 'aceClubs' within property initializer; property initializers run before 'self' is available



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source