SCLAlertView-Swift
SCLAlertView-Swift copied to clipboard
addTextField creating issue during device testing (works smoothly on simulator)
let alert = SCLAlertView(appearance: AppContext.appearanceTripCreate) let txt = alert.addTextField("Enter trip name") alert.addButton("Done") { if txt.text != nil { } else { SCLAlertView().showInfo("Please enter trip name", subTitle: "")
}
}
alert.showEdit("Create Trip", subTitle: "", colorStyle: AppContext.redColor, colorTextButton: 0xFFFFFF)
SCLAlertView.swift This line throws errror viewText.textContainerInset = UIEdgeInsets.zero viewText.textContainer.lineFragmentPadding = 0;