{"id":21437617,"url":"https://github.com/gabrieltheodoropoulos/gtsettingsmanageable","last_synced_at":"2026-07-10T02:31:06.403Z","repository":{"id":79559044,"uuid":"218938262","full_name":"gabrieltheodoropoulos/GTSettingsManageable","owner":"gabrieltheodoropoulos","description":"A Swift protocol that automates the process of handling app settings and configuration as a Swift Package.","archived":false,"fork":false,"pushed_at":"2019-11-01T07:49:11.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T23:42:23.056Z","etag":null,"topics":["app","ios","ios-app","ios-swift","protocol","settings-management","swift","swift-package","swift-package-manager"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gabrieltheodoropoulos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-01T07:48:09.000Z","updated_at":"2019-11-01T07:55:27.000Z","dependencies_parsed_at":"2023-03-13T20:09:49.330Z","dependency_job_id":null,"html_url":"https://github.com/gabrieltheodoropoulos/GTSettingsManageable","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gabrieltheodoropoulos/GTSettingsManageable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieltheodoropoulos%2FGTSettingsManageable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieltheodoropoulos%2FGTSettingsManageable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieltheodoropoulos%2FGTSettingsManageable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieltheodoropoulos%2FGTSettingsManageable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabrieltheodoropoulos","download_url":"https://codeload.github.com/gabrieltheodoropoulos/GTSettingsManageable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieltheodoropoulos%2FGTSettingsManageable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280897785,"owners_count":26409981,"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","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["app","ios","ios-app","ios-swift","protocol","settings-management","swift","swift-package","swift-package-manager"],"created_at":"2024-11-23T00:27:55.260Z","updated_at":"2025-10-25T03:06:48.574Z","avatar_url":"https://github.com/gabrieltheodoropoulos.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GTSettingsManageable\n\n`GTSettingsManageable` is a *Swift protocol*. Custom types that are meant to handle in-app settings and configuration should adopt it and use the provided methods to load, update, delete and perform other operations on settings.\n\nOriginal settings should exist as a property list file in the app bundle, otherwise the adopting type's properties should come with initial, default values.\n\nSettings file is stored in the Caches directory of the app and it's a *property list (plist)* file.\n\n\n## Requirements\n\n* The adopting custom type **must conform to** `Codable` protocol.\n* Minimum required iOS version: 12.0.\n\n## Integrating GTSettingsManageable\n\nTo integrate `GTSettingsManageable` into your projects follow the next steps:\n\n1. Copy the repository URL to GitHub (it can be found by clicking on the *Clone or Download* button).\n2. Open your project in Xcode.\n3. Go to menu **File \u003e Swift Packages \u003e Add Package Dependency...**.\n4. Paste the URL, select the package when it appears and click Next.\n5. In the *Rules* leave the default option selected (*Up to Next Major*) and click Next.\n6. Finally select the *GTSettingsManageable* package and select the *Target* to add to; click Finish.\n\n## Available API\n\n```\n- load()\n- loadUsingSettingsFile()\n- update()\n- delete()\n- reset()\n- settingsURL()\n- toDictionary()\n- describeSettings()\n```\n\nRead the documentation of each method for more information and details.\n\n## Other Notes\n\nMore than one settings files can co-exist to an app. See the `settingsURL()` method's documentation for more information about *naming*. Also, it's recommended to:\n\n1. Use a *singleton class* as the custom type to represent settings. Using a shared instance app-wide makes accessing settings easier, it leads to reduced amount of code, and prevents from potential problems in comparison to having multiple instances of the settings type.\n2. *Load* settings in the *AppDelegate* right after the application's launch.\n\n`GTSettingsManageable` is written in Swift 5.1.\n\nWant to learn more? Read my [tutorial at AppCoda](https://www.appcoda.com/swift-protocols-app-configuration/) where I'm building `GTSettingsManageable` protocol step by step.\n\n## License\n\n`GTSettingsManageable` is provided under the [MIT license](https://opensource.org/licenses/MIT) by [Gabriel Theodoropoulos](https://gtiapps.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrieltheodoropoulos%2Fgtsettingsmanageable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabrieltheodoropoulos%2Fgtsettingsmanageable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrieltheodoropoulos%2Fgtsettingsmanageable/lists"}