Dictionary

public extension Dictionary
  • UserDefaults Wrapper

    使用

    let name = dic["name", or: "哈哈哈哈"]
    

    Declaration

    Swift

    subscript(key: Key, or defaultValue: Value) -> Value { get set }