vikmeup / SCLAlertView-Swift

Beautiful animated Alert View. Written in Swift
MIT License
5.3k stars 760 forks source link

Add ability to show alert without icon #477

Closed learnwithgabbar closed 8 months ago

CHENG-LIANG1 commented 2 years ago

just set showCircularIcon to false

let appearance = SCLAlertView.SCLAppearance( kTitleFont: UIFont(name: "HelveticaNeue", size: 20)!, kTextFont: UIFont(name: "HelveticaNeue", size: 14)!, kButtonFont: UIFont(name: "HelveticaNeue-Bold", size: 14)!, showCloseButton: false, showCircularIcon: false, contentViewCornerRadius: 15, buttonCornerRadius: 10 )

algrid commented 8 months ago

yep, @CHENG-LIANG1 is right, something like this:

let appearance = SCLAlertView.SCLAppearance(
    showCircularIcon: false
)

SCLAlertView(appearance: appearance).showInfo("Hello")