I am trying to set card type in CitrusPay in Swift
I need help converting following Objective-C line to Swift
CTSElectronicCardUpdate *debitCard = [[CTSElectronicCardUpdate alloc] initDebitCard];
This is what compiler suggested me:
let debitCard: CTSElectronicCardUpdate = CTSElectronicCardUpdate.init(debitCard: ())
so the debitCard is expecting function type
This works for me