skip to Main Content

Ios swift – How to use a string in a function name

I have these functions: private func chooseOfferButton1Tapped() { let vc = ChooseRdvVC() vc.offerCatched = arrayCatched![0] HapticsManager.shared.vibrate(for: .success) navigationController?.pushViewController(vc, animated: true) } private func chooseOfferButton2Tapped() { let vc = ChooseRdvVC() vc.offerCatched = arrayCatched![1] HapticsManager.shared.vibrate(for: .success) navigationController?.pushViewController(vc, animated: true) } ... up…

VIEW QUESTION
Back To Top
Search