{"id":17163188,"url":"https://github.com/noppefoxwolf/swiftuiextensions","last_synced_at":"2025-09-26T12:44:34.144Z","repository":{"id":72999618,"uuid":"220491818","full_name":"noppefoxwolf/SwiftUIExtensions","owner":"noppefoxwolf","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-26T12:36:33.000Z","size":1174,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T14:45:17.144Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noppefoxwolf.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}},"created_at":"2019-11-08T15:11:37.000Z","updated_at":"2020-11-26T12:36:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"6481cce2-9cae-4353-990d-b87f1fcd4e45","html_url":"https://github.com/noppefoxwolf/SwiftUIExtensions","commit_stats":{"total_commits":31,"total_committers":2,"mean_commits":15.5,"dds":"0.032258064516129004","last_synced_commit":"69f65e7b5134245beb9c25d439bda0e50d4a79c3"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/noppefoxwolf/SwiftUIExtensions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noppefoxwolf%2FSwiftUIExtensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noppefoxwolf%2FSwiftUIExtensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noppefoxwolf%2FSwiftUIExtensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noppefoxwolf%2FSwiftUIExtensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noppefoxwolf","download_url":"https://codeload.github.com/noppefoxwolf/SwiftUIExtensions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noppefoxwolf%2FSwiftUIExtensions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277081044,"owners_count":25757340,"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-09-26T02:00:09.010Z","response_time":78,"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":[],"created_at":"2024-10-14T22:48:06.462Z","updated_at":"2025-09-26T12:44:34.099Z","avatar_url":"https://github.com/noppefoxwolf.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftUIExtensions\n\n## Presentation items\n\n```swift\n@State var alertItem: AlertItem? = nil\n@State var sheetItem: SheetItem? = nil\n@State var actionSheetItem: ActionSheetItem? = nil\n\ncurrentView\n    .alert(item: $alertItem, content: { $0.alert })\n    .sheet(item: $sheetItem, content: { $0 })\n    .actionSheet(item: $actionSheetItem, content: { $0.actionSheet })\n```\n\n## Fitting Image Scale\n\n```swift\nImage(\"img\").fitting(width: 56, height: 32, contentMode: .fill)\nImage(\"img\").fitting(width: 45, height: 86, contentMode: .fit)\n```\n\n\u003cimg src=\"https://github.com/noppefoxwolf/SwiftUIExtensions/blob/master/.github/fitting.png\" width=\"320\"\u003e\n\n## UIKit Wrapper\n\n- ActivityIndicator\n- SafariView\n\n## TabBarView\n\nTab style view that able to keep view presentation state.\n\n```swift\nprivate let tabBarViewStore: TabBarViewStore = .init()\n\nTabBarView(store: tabBarViewStore) {\n    Text(\"1\").tabBarItem(tag: 0, title: \"item1\", image: UIImage(systemName: \"circle.fill\"))\n    \n    Text(\"2\").tabBarItem(tag: 1, title: \"item2\", image: UIImage(systemName: \"circle.fill\"))\n\n    Text(\"3\").tabBarItem(tag: 2, title: \"item3\", image: UIImage(systemName: \"circle.fill\"))\n}\n```\n\n## SwiftUIExtensions.UIView\n\nEasy to wrap UIView and optimizing differential update.\n\n```swift\nimport UIKit\nimport SwiftUIExtensions\ntypealias UITextView = SwiftUIExtensions.UIView\u003cUIKit.UITextView, String\u003e\n```\n\n```swift\nUITextView(text) { (textView, value, context) in\n    // call only value changed\n    uiView.attributedText = NSAttributedString(string: value, options: options)\n}\n```\n\n# Other extensions\n\n[noppefoxwolf/RefreshUI](https://github.com/noppefoxwolf/RefreshUI)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoppefoxwolf%2Fswiftuiextensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoppefoxwolf%2Fswiftuiextensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoppefoxwolf%2Fswiftuiextensions/lists"}