EZAlertController icon indicating copy to clipboard operation
EZAlertController copied to clipboard

Use optionals for message

Open AlexGee17 opened this issue 6 years ago • 3 comments

What do you think about using optionals in message?

It could look like so:

@discardableResult open class func alert(_ title: String, message: String?) -> UIAlertController { return alert(title, message: message ?? "", acceptMessage: "OK", acceptBlock: { // Do nothing }) }

AlexGee17 avatar Jul 25 '17 12:07 AlexGee17

@goktugyil what do you think?

thellimist avatar Jul 26 '17 08:07 thellimist

Makes sense

Esqarrouth avatar Jul 26 '17 15:07 Esqarrouth

The UIAlertController API does have optional string for both title and message, this should be reflected in the calls for the Wrapper.

nissaba avatar Jul 30 '19 15:07 nissaba