when I pass to the controller with FPNTextfield, the controller have delayed
@IBOutlet weak var number:FPNTextField!
override func viewDidLoad() {
super.viewDidLoad()
number.delegate = self
number.displayMode = .list
listController.setup(repository: number.countryRepository)
// Custom the size/edgeInsets of the flag button
number.flagButtonSize = CGSize(width: 35, height: 35)
number.flagButton.imageEdgeInsets = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)
// The placeholder is an example phone number of the selected country by default. You can add your own placeholder :
number.hasPhoneNumberExample = true
}
I've got the same issue. The problem is when the FPNTextField is initialised is loading all the flag in memory. The following PR should fix that issue:
when I pass to the controller with FPNTextfield, the controller have delayed