An open API service indexing awesome lists of open source software.

https://github.com/fromatom/hari


https://github.com/fromatom/hari

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Hari

## Usage

```swift
import Hari

enum HariKeys: String, HariKey {
case someKeyName1
case someKeyName2
}

Hari.shared.setup(suiteName: "com.example.app.group", bundleID: "com.example.app")

// do-catch pattern
do {
let value = try Hari.shared.bool(forKey: HariKeys.someKeyName1)
print(value)
} catch let error {
print(error)
}

// optional return value pattern
let value2 = Hari.shared.bool(forKey: HariKeys.someKeyName2)
```