ivkuznetsov / CommonUtils

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CommonUtils

Helpful code commonly used in the apps to simplify things.

Keychain

Storing and retrieving data in Keychain.

Keychain.set(string: "my key", service: "app.service")
        
let key = Keychain.get("app.service")

RWAtomic

Atomic property wrapper for concurrent reading and synchronized writing. Based on pthread_rwlock.

@RWAtomic var array: [String] = []

_array.mutate {
    $0.append("new")
}

Meta

Ilya Kuznetsov – i.v.kuznecov@gmail.com

Distributed under the MIT license. See LICENSE for more information.

https://github.com/ivkuznetsov

About

License:MIT License


Languages

Language:Swift 100.0%