KO
|
EN
gitlite — search
Search
#typescript
#ai-agents
#ai
#dsh-plugin
#deepseek-harness
#open-source
#claude-code
#codex
#cli
#developer-tools
#react
#windows
SwiftyConfiguration
★ 116
Open GitHub ↗
Modern Swift API for Plist.
Download README (.md)
Explore Similar Repositories
AnyPicker
:
jQuery Picker Library for Android, iOS & Windows Phone. eg Date Picker, Time Picker, DateTime Picker, Custom Select etc
ngx_brotli_module
:
Brotli module for NGINX, including the encoder
scansploit
:
Exploit using barcodes, QRcodes, earn13, datamatrix
fastlane-plugin-cordova
:
Integrate your Cordova build into your Fastlane setup
go-keybase-chat-bot
:
Official Go Keybase chat bot SDK
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
SwiftyConfiguration
?
Download (.md)
# SwiftyConfiguration [](https://github.com/Carthage/Carthage) [](http://cocoadocs.org/docsets/SwiftyConfiguration/) [](http://cocoadocs.org/docsets/SwiftyConfiguration/) [](https://github.com/ykyohei/SwiftyConfiguration/blob/master/LICENSE)  SwiftyConfiguration is modern Swift API for Plist. ## Usage ##### 1. Create Plist create plist file and add your project.  ##### 2. Define your plist keys ```Swift extension Keys { static let string = Key<String>("string") static let url = Key<NSURL>("url") static let number = Key<NSNumber>("number") static let int = Key<Int>("int") static let float = Key<Float>("float") static let double = Key<Double>("double") static let date = Key<NSDate>("date") static let bool = Key<Bool>("bool") static let array = Key<Array<AnyObject>>("array") static let dictionary = Key<[String : String]>("dictionary") // Support nested value. static let innerInt = Key<Int>("array.0") static let innerArray = Key<String>("array.1.0") static let innerString = Key<String>("dictionary.innerString") } ``` ##### 3. Just use it! ```Swift let plistPath = NSBundle.mainBundle().pathForResource("Configuration", ofType: "plist")! let config = Configuration(plistPath: plistPath)! // You can get a plist value to type-safe. let stringValue = config.get(.string)! let urlValue = config.get(.url)! let numberValue = config.get(.number)! let intValue = config.get(.int)! let floatValue = config.get(.float)! let doubleValue = config.get(.double)! let dateValue = config.get(.date)! let boolValue = config.get(.bool)! let arrayValue = config.get(.array)! let dictionaryValue = config.get(.dictionary)! let innerIntValue = config.get(.innerInt)! let innerArrayValue = config.get(.innerArray)! let innerStringValue = config.get(.innerString)! ``` ## Installation ### Carthage `SwiftyConfiguration` is available through [Carthage](https://github.com/Carthage/Carthage). To install it, simply add the following line to your Cartfile: ```ruby github "ykyouhei/SwiftyConfiguration" ``` ### CocoaPods `SwiftyConfiguration` is available on CocoaPods. Add the following to your `Podfile`: ```ruby pod 'SwiftyConfiguration' ``` ### Manually Just add the Classes folder to your project.