{"id":20838833,"url":"https://github.com/royalicing/burntfoundation","last_synced_at":"2026-04-24T00:34:08.040Z","repository":{"id":32144488,"uuid":"35717317","full_name":"RoyalIcing/BurntFoundation","owner":"RoyalIcing","description":"Pleasant Swift additions to Foundation","archived":false,"fork":false,"pushed_at":"2018-10-31T10:31:16.000Z","size":36,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-18T23:44:09.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RoyalIcing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-16T09:15:06.000Z","updated_at":"2018-10-31T10:31:18.000Z","dependencies_parsed_at":"2022-09-11T17:23:48.024Z","dependency_job_id":null,"html_url":"https://github.com/RoyalIcing/BurntFoundation","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoyalIcing%2FBurntFoundation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoyalIcing%2FBurntFoundation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoyalIcing%2FBurntFoundation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoyalIcing%2FBurntFoundation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RoyalIcing","download_url":"https://codeload.github.com/RoyalIcing/BurntFoundation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243196663,"owners_count":20251861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T01:11:39.962Z","updated_at":"2025-12-27T02:34:49.216Z","avatar_url":"https://github.com/RoyalIcing.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BurntFoundation\nPleasant Swift additions to Foundation\n\n## Examples\n\n### User Defaults\n\n```swift\nenum ExampleIntChoice: Int, UserDefaultsChoiceRepresentable {\n\tcase One = 1\n\tcase Two = 2\n\tcase Three = 3\n\t\n\t// The key that will be used with NSUserDefaults\n\tstatic var identifier: String = \"exampleInt\"\n\tstatic var defaultValue = ExampleIntChoice.One\n}\n```\n\nSetting:\n\n```swift\n// Before:\nud.setInteger(3, forKey: \"exampleInt\")\n\n// After:\nud.setChoice(ExampleIntChoice.Three)\n```\n\nGetting:\n\n```swift\n// Before:\nlet intValue = ud.integerForKey(\"exampleInt\")\n\n// After:\nlet intChoice = ud.choice(ExampleIntChoice)\n\n```\n\n### Notifications\n\n```swift\nclass Example {\n\tenum Notification: String {\n\t\tcase DidUpdate = \"NotificationTestsDidUpdateNotification\"\n\t}\n\t\n\tfunc update() {\n\t\t// Do stuff...\n\t\t\n\t\t// Post the notification\n\t\tnc.postNotification(Example.Notification.DidUpdate, object: self)\n\t}\n}\n\nlet example = Example()\nlet notificationObserver = NotificationObserver\u003cExample.Notification\u003e(object: example)\nnotificationObserver.observe(.DidUpdate) { notification in\n\t// Observe the notification\n}\n```\n\n## Installation\n\nTo integrate BurntFoundation into your Xcode project using Carthage, specify it in your Cartfile:\n\n```\ngithub \"BurntCaramel/BurntFoundation\" \u003e= 0.3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyalicing%2Fburntfoundation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froyalicing%2Fburntfoundation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyalicing%2Fburntfoundation/lists"}