{"id":32146853,"url":"https://github.com/alpensegler/tweakit","last_synced_at":"2026-02-19T08:01:44.593Z","repository":{"id":38210919,"uuid":"372183527","full_name":"Alpensegler/TweaKit","owner":"Alpensegler","description":"Yet another library for adjusting parameters and feature flagging.","archived":false,"fork":false,"pushed_at":"2023-09-01T02:37:30.000Z","size":2586,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-30T04:09:47.380Z","etag":null,"topics":["ios","swift","tweak"],"latest_commit_sha":null,"homepage":"https://alpensegler.github.io/TweaKit/","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/Alpensegler.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-05-30T10:21:30.000Z","updated_at":"2023-06-23T03:32:35.000Z","dependencies_parsed_at":"2023-02-09T15:01:54.498Z","dependency_job_id":null,"html_url":"https://github.com/Alpensegler/TweaKit","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Alpensegler/TweaKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alpensegler%2FTweaKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alpensegler%2FTweaKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alpensegler%2FTweaKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alpensegler%2FTweaKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alpensegler","download_url":"https://codeload.github.com/Alpensegler/TweaKit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alpensegler%2FTweaKit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29608152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ios","swift","tweak"],"created_at":"2025-10-21T08:31:02.480Z","updated_at":"2026-02-19T08:01:44.577Z","avatar_url":"https://github.com/Alpensegler.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Alpensegler/TweaKit/master/Images/logo.png\" alt=\"TweaKit\" title=\"TweaKit\" width=\"1200\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://img.shields.io/badge/Swift-5.4_5.5_5.6_5.7_5.8-orange?style=flat\"\u003e\u003cimg src=\"https://img.shields.io/badge/Swift-5.4_5.5_5.6_5.7_5.8-Orange?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://cocoapods.org/pods/TweaKit\"\u003e\u003cimg src=\"https://img.shields.io/cocoapods/v/TweaKit.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Carthage/Carthage/\"\u003e\u003cimg src=\"https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://swift.org/package-manager/\"\u003e\u003cimg src=\"https://img.shields.io/badge/SPM-supported-DE5C43.svg?style=flat\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n`TweaKit`, a.k.a. \"Tweak It\", is a pure-swift library for adjusting parameters and feature flagging.\n\n## Features\n\n- Declaring tweaks with property wrapper and result builder.\n- Tweaking frequently used types on the fly.\n- Carefully designed UI/UX.\n- Searching tweaks fuzzily.\n- Importing and exporting tweaks with json.\n\n## Requirements\n\n- iOS 13 and later\n- Swift 5.4 and later\n\n## Installation\n\n### CocoaPods\n\n```ruby\npod 'TweaKit', '~\u003e 1.0'\n```\n\n### Carthage\n\n```ogdl\ngithub \"Alpensegler/TweaKit\" ~\u003e 1.0\n```\n\n### Swift Package Manager\n\n```swift\n.package(url: \"https://github.com/Alpensegler/TweaKit.git\", .upToNextMajor(from: \"1.0.0\"))\n```\n\n## Get Started\n\n### Declare Tweaks\n\n```swift\nimport TweaKit\n\nenum Tweaks {\n    @Tweak\u003cCGFloat\u003e(name: \"Line Width\", defaultValue: 1, from: 0.5, to: 2, stride: 0.05)\n    static var sketchLineWidth\n    @Tweak(name: \"Line Color\", defaultValue: UIColor(red: 0.227, green: 0.529, blue: 0.992, alpha: 1))\n    static var sketchLineColor\n    @Tweak(name: \"Order\", defaultValue: SketchAction.allCases)\n    static var sketchActionsOrder\n    @Tweak(name: \"Name\", defaultValue: \"My Sketch\")\n    static var sketchName\n    \n    @Tweak(name: \"Navigation Title\", defaultValue: \"Demo\", options: [\"Demo\", \"Example\", \"Guide\"])\n    static var rootViewNavigationTitle\n    @Tweak(name: \"Shake To Show Tweaks\", defaultValue: true)\n    static var rootViewEnableShake\n    \n    static let context = TweakContext {\n        TweakList(\"Sketch\") {\n            TweakSection(\"Line\") {\n                $sketchLineWidth\n                $sketchLineColor\n            }\n            TweakSection(\"Info\") {\n                $sketchName\n            }\n            TweakSection(\"Actions\") {\n                $sketchActionsOrder\n            }\n        }\n        TweakList(\"Root View\") {\n            TweakSection(\"UI\") {\n                $rootViewNavigationTitle\n            }\n            TweakSection(\"Interaction\") {\n                $rootViewEnableShake\n            }\n        }\n    }\n}\n```\n\nYou can tweak the following types:\n\n- `Bool`\n- Numeric Types: `Int[8|16|32|64]`, `UInt[8|16|32|64]`, `Float`, `Double` and `CGFloat`\n- `String`\n- `Array` that `Element` conforming some protocols\n- `UIColor`\n\nAside from changing value in place, you can also select value from given options.\n\n### Initialize Tweak Context\n\n```swift\nfunc application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -\u003e Bool {\n    _ = Tweaks.context\n    return true\n}\n```\n\nYou can initialize tweak context at any time, but you should make sure the context is initialized before using tweaks in it.\n\n### Use Tweaks\n\n```swift\nmyViewController.title = Tweaks.rootViewNavigationTitle\nmySketchView.lineWidth = Tweaks.sketchLineWidth\n```\n\n### Show the Tweak UI\n\n```swift\nTweaks.context.show()\n```\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Alpensegler/TweaKit/master/Images/Screenshot1.png\" alt=\"Screenshot1\" title=\"Screenshot1\" width=\"200\"/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Alpensegler/TweaKit/master/Images/Screenshot2.png\" alt=\"Screenshot2\" title=\"Screenshot2\" width=\"200\"/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Alpensegler/TweaKit/master/Images/Screenshot3.png\" alt=\"Screenshot3\" title=\"Screenshot3\" width=\"200\"/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Alpensegler/TweaKit/master/Images/Screenshot4.png\" alt=\"Screenshot4\" title=\"Screenshot4\" width=\"200\"/\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Alpensegler/TweaKit/master/Images/Screenshot5.png\" alt=\"Screenshot5\" title=\"Screenshot5\" width=\"200\"/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Alpensegler/TweaKit/master/Images/Screenshot6.png\" alt=\"Screenshot6\" title=\"Screenshot6\" width=\"200\"/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Alpensegler/TweaKit/master/Images/Screenshot7.png\" alt=\"Screenshot7\" title=\"Screenshot7\" width=\"200\"/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Alpensegler/TweaKit/master/Images/Screenshot8.png\" alt=\"Screenshot8\" title=\"Screenshot8\" width=\"200\"/\u003e\n\u003c/p\u003e\n\n\nThat's all. Now you already know enough about `TweaKit`.\n\n\n\nFeel free to play with the demo app or check [wiki](https://github.com/Alpensegler/TweaKit/wiki) and [documentation](https://Alpensegler.github.io/TweaKit) for more usage information.\n\n## Credits\n\n- UI/UX is designed by [@gggeeeeggge](https://twitter.com/gggeeeeggge).\n- TweaKit is heavily inspired by [SwiftTweaks](https://github.com/Khan/SwiftTweaks).\n\n## About The Logo\n\nThe logo of `TweaKit` is a cute stoat, a mustelid that can tweak fur color during summer and winter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falpensegler%2Ftweakit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falpensegler%2Ftweakit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falpensegler%2Ftweakit/lists"}