Array Adding fixed number elements let model = AccountTransactionModel() let transactions = [AccountTransactionModel](repeating: model, count: 50) Contains let hasHitron = self.orderItems.contains { $0.activationModemType == .Hitron }