EZAlertController
EZAlertController copied to clipboard
Use optionals for message
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 }) }
@goktugyil what do you think?
Makes sense
The UIAlertController API does have optional string for both title and message, this should be reflected in the calls for the Wrapper.