Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

how to make extension for optional in swift

extension Swift.Optional where Wrapped == String {
    var isBlank: Bool {
        return self?.isBlank ?? true
    }
}
 
PREVIOUS NEXT
Tagged: #extension #optional #swift
ADD COMMENT
Topic
Name
7+4 =