vikmeup / SCLAlertView-Swift

Beautiful animated Alert View. Written in Swift
MIT License
5.32k stars 764 forks source link

Convenience Method for close button text #467

Closed justdan0227 closed 3 years ago

justdan0227 commented 4 years ago

Can we get a convenience method that would allow us to change the text of the close button from "Done" to "OK" without having to define an appearance property and add a button and handler when the handler does nothing? Thanks

justdan0227 commented 3 years ago

So this appears to have been added but this never closed.

You can now use completeText

alertView.showTitle( "Image URL", // Title of view subTitle: "Enter URL of Image.", timeout: nil, // String of view completeText: "CANCEL", style: .error
)