Answers for "extension for optional in swift"

1

how to make extension for optional in swift

extension Swift.Optional where Wrapped == String {
    var isBlank: Bool {
        return self?.isBlank ?? true
    }
}
Posted by: Guest on August-03-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language