📜  如何在 swift 代码示例中为可选扩展

📅  最后修改于: 2022-03-11 15:00:59.989000             🧑  作者: Mango

代码示例1
extension Swift.Optional where Wrapped == String {
    var isBlank: Bool {
        return self?.isBlank ?? true
    }
}