{"id":19952282,"url":"https://github.com/sparrowcode/uikitextension","last_synced_at":"2025-12-12T06:21:45.276Z","repository":{"id":62448837,"uuid":"396309523","full_name":"sparrowcode/UIKitExtension","owner":"sparrowcode","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-24T21:15:00.000Z","size":5124,"stargazers_count":91,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T07:07:40.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sparrowcode.io/frameworks","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/sparrowcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2021-08-15T10:17:49.000Z","updated_at":"2024-11-08T15:01:46.000Z","dependencies_parsed_at":"2023-09-27T23:33:34.711Z","dependency_job_id":"107ababf-0375-4306-831a-a4a4fee0d2ae","html_url":"https://github.com/sparrowcode/UIKitExtension","commit_stats":{"total_commits":128,"total_committers":2,"mean_commits":64.0,"dds":0.0234375,"last_synced_commit":"68d8b9c555e978495bb0f78b841cc9adc938e213"},"previous_names":["ivanvorobei/nativeuikit"],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparrowcode%2FUIKitExtension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparrowcode%2FUIKitExtension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparrowcode%2FUIKitExtension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparrowcode%2FUIKitExtension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sparrowcode","download_url":"https://codeload.github.com/sparrowcode/UIKitExtension/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247622983,"owners_count":20968575,"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-13T01:12:26.202Z","updated_at":"2025-12-12T06:21:45.212Z","avatar_url":"https://github.com/sparrowcode.png","language":"Swift","readme":"# NativeUIKit\n\nMimicrated views and controls to native Apple appearance. If you have any ideas of what elements can be added, let me know. Here provided all elements which available, tap for open docs for it.\n\n\u003cp float=\"left\" style=\"margin: 100px\"\u003e\n    \u003ca href=\"#NativeAvatarView\"\u003e\n        \u003cimg src=\"https://github.com/ivanvorobei/NativeUIKit/blob/main/Assets/Readme/Elements/NativeAvatarView.svg\"\u003e\n    \u003c/a\u003e\n    \u0026nbsp;\n    \u003ca href=\"#NativeLargeActionButton\"\u003e\n        \u003cimg src=\"https://github.com/ivanvorobei/NativeUIKit/blob/main/Assets/Readme/Elements/NativeLargeActionButton.svg\"\u003e\n    \u003c/a\u003e\n    \u0026nbsp;\n    \u003ca href=\"#NativeSmallActionButton\"\u003e\n        \u003cimg src=\"https://github.com/ivanvorobei/NativeUIKit/blob/main/Assets/Readme/Elements/NativeSmallActionButton.svg\"\u003e\n    \u003c/a\u003e\n    \u0026nbsp;\n    \u003ca href=\"#NativePlayPauseCompactButton\"\u003e\n        \u003cimg src=\"https://github.com/ivanvorobei/NativeUIKit/blob/main/Assets/Readme/Elements/NativePlayPauseCompactButton.svg\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nIf you like the project, don't forget to `put star ★`\u003cbr\u003eCheck out my other libraries:\n\n\u003cp float=\"left\"\u003e\n    \u003ca href=\"https://opensource.ivanvorobei.io\"\u003e\n        \u003cimg src=\"https://github.com/ivanvorobei/Readme/blob/main/Buttons/more-libraries.svg\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n## Navigate\n\n- [Installation](#installation)\n    - [Swift Package Manager](#swift-package-manager)\n    - [Manually](#manually)\n- [Classes](#usage)\n    - [NativeLargeActionButton](#NativeLargeActionButton)\n    - [NativeSmallActionButton](#NativeSmallActionButton)\n    - [NativeAvatarView](#NativeAvatarView)\n    - [NativePlayPauseCompactButton](#NativePlayPauseCompactButton)\n- [Сontribution](#сontribution)\n- [Other Projects](#other-projects)\n- [Russian Community](#russian-community)\n\n## Installation\n\nReady for use on iOS 12+, tvOS 12+ \u0026 watchOS 6.0+. Works with Swift 5+. Required Xcode 12.0 and higher.\n\n\u003cimg align=\"right\" src=\"https://github.com/ivanvorobei/NativeUIKit/blob/main/Assets/Readme/spm-install-preview.png\" width=\"520\"/\u003e\n\n### Swift Package Manager\n\nThe [Swift Package Manager](https://swift.org/package-manager/) is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.\n\nTo integrate using Xcode 12, specify it in `File \u003e Swift Packages \u003e Add Package Dependency...`:\n\n```ogdl\nhttps://github.com/ivanvorobei/NativeUIKit\n```\n\n### Manually\n\nIf you prefer not to use any of dependency managers, you can integrate manually. Put `Sources/NativeUIKit` folder in your Xcode project. Make sure to enable `Copy items if needed` and `Create groups`.\n\n## Classes\n\n\n### [NativeLargeActionButton](https://github.com/ivanvorobei/NativeUIKit/blob/main/Sources/NativeUIKit/NativeLargeActionButton.swift)\n\nUsually used at the bottom of the screen. You can set an icon. You can set how to change the style when you click. Supports states `disabled` and `dimmed`.\n\n\u003cp float=\"left\"\u003e\n    \u003ca href=\"https://opensource.ivanvorobei.io\"\u003e\n        \u003cimg src=\"https://github.com/ivanvorobei/NativeUIKit/blob/main/Assets/Readme/Elements/NativeLargeActionButton.svg\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nNext code for usage:\n\n```swift\n// Set Appearance and Content\nlet button = NativeLargeActionButton()\nbutton.setImage(UIImage.init(systemName: \"plus.circle.fill\")!)\nbutton.higlightStyle = .background\nbutton.applyDefaultAppearance(with: .init(content: .custom(.white), background: .tint))\n\n// or use Wrapper\nbutton.set(\n    title: \"Large Action\",\n    icon: UIImage.init(systemName: \"plus.circle.fill\")!,\n    colorise: .init(content: .custom(.white), background: .tint)\n)\n```\n\nButton support system layouts by `sizeToFit()`. Next code allow you to layout button with cutom width:\n\n```swift\nbutton.sizeToFit()\nbutton.frame = .init(x: 0, y: 0, width: 300, height: button.frame.height)\n```\n\n### [NativeSmallActionButton](https://github.com/ivanvorobei/NativeUIKit/blob/main/Sources/NativeUIKit/NativeSmallActionButton.swift)\n\nYou definitely saw this button in the AppStore. You can use it without the icon.\u003cbr\u003e\nSupports states `disabled` and `dimmed`.\n\n\u003cp float=\"left\"\u003e\n    \u003ca href=\"https://opensource.ivanvorobei.io\"\u003e\n        \u003cimg src=\"https://github.com/ivanvorobei/NativeUIKit/blob/main/Assets/Readme/Elements/NativeSmallActionButton.svg\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nNext code for usage:\n\n```swift\n// Set Appearance and Content\nlet button = NativeSmallActionButton()\nbutton.higlightStyle = .background\nbutton.applyDefaultAppearance(with: .init(content: .custom(.white), background: .tint))\n\n// or use Wrapper\nbutton.set(\n    title: \"Edit\",\n    icon: nil,\n    colorise: .init(content: .custom(.white), background: .tint)\n)\n```\n\nButton support system layouts by `sizeToFit()`. Next code allow you to layout button:\n\n```swift\nbutton.sizeToFit()\n```\n\n### [NativeAvatarView](https://github.com/ivanvorobei/NativeUIKit/blob/main/Sources/NativeUIKit/NativeAvatarView.swift)\n\n\u003ca href=\"https://opensource.ivanvorobei.io\"\u003e\n    \u003cimg align=\"left\" src=\"https://github.com/ivanvorobei/NativeUIKit/blob/main/Assets/Readme/Elements/NativeAvatarView.svg\"/\u003e\n\u003c/a\u003e\n\nAvatar view is container with 3 buttons - placeholder, avatar and indicator. For change avatar set `avatarAppearance`. For show or hide edit button set `isEditable`.\n\nLayout availbe by size to fit for content. In this case change placeholder size to valid SFSymbol for have correct fit. By default font side is 80 point. Or you can set fixed frame and ignore fitting size.\n\n```swift\nlet avatarView = NativeAvatarView()\n\n// You can set target, actions or even contex menu like usual button.\navatarView.placeholderButton.addTarget(self, action: #selector(didTap), for: .touchUpInside)\navatarView.avatarButton.addTarget(self, action: #selector(didTap), for: .touchUpInside)\navatarView.indicatorButton.addTarget(self, action: #selector(didTap), for: .touchUpInside)\n\n// For show edit button.\navatarView.isEditable = true\n\n// Layout.\n// For fit by images.\navatarView.sizeToFit()\n// By custom frame:\navatarView.frame = .init(x: 0, y: 0, width: 60, height: 60)\n```\n\n### [NativePlayPauseCompactButton](https://github.com/ivanvorobei/NativeUIKit/blob/main/Sources/NativeUIKit/NativePlayPauseCompactButton.swift)\n\n\u003cp float=\"left\"\u003e\n    \u003ca href=\"https://opensource.ivanvorobei.io\"\u003e\n        \u003cimg src=\"https://github.com/ivanvorobei/NativeUIKit/blob/main/Assets/Readme/Elements/NativePlayPauseCompactButton.svg\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nSimple play/pause button.\n\n```swift\nlet button = NativePlayPauseCompactButton()\n// For fit to valid size.\nbutton.sizeToFit()\n// For change appearance.\nbutton.appearance = .play //.pause\n```\n\n## Сontribution\n\nMy English is very bad. You can see this once you read the documentation. I would really like to have clean and nice documentation. If you see gramatical errors and can help fix the Readme, please contact me hello@ivanvorobei.io or make a Pull Request. Thank you in advance!\n\n## Other Projects\n\nI love being helpful. Here I have provided a list of libraries that I keep up to date. For see `video previews` of libraries without install open [opensource.ivanvorobei.io](https://opensource.ivanvorobei.io) website.\u003cbr\u003e\nI have libraries with native interface and managing permissions. Also available pack of useful extensions for boost your development process.\n\n\u003cp float=\"left\"\u003e\n    \u003ca href=\"https://opensource.ivanvorobei.io\"\u003e\n        \u003cimg src=\"https://github.com/ivanvorobei/Readme/blob/main/Buttons/more-libraries.svg\"\u003e\n    \u003c/a\u003e\n        \u003ca href=\"https://xcodeshop.ivanvorobei.io\"\u003e\n        \u003cimg src=\"https://github.com/ivanvorobei/Readme/blob/main/Buttons/xcode-shop.svg\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n## Russian Community\n\nПодписывайся в телеграмм-канал, если хочешь получать уведомления о новых туториалах.\u003cbr\u003e\nСо сложными и непонятными задачами помогут в чате.\n\n\u003cp float=\"left\"\u003e\n    \u003ca href=\"https://tutorials.ivanvorobei.io/telegram/channel\"\u003e\n        \u003cimg src=\"https://github.com/ivanvorobei/Readme/blob/main/Buttons/open-telegram-channel.svg\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://tutorials.ivanvorobei.io/telegram/chat\"\u003e\n        \u003cimg src=\"https://github.com/ivanvorobei/Readme/blob/main/Buttons/russian-community-chat.svg\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nВидео-туториалы выклыдываю на [YouTube](https://tutorials.ivanvorobei.io/youtube):\n\n[![Tutorials on YouTube](https://cdn.ivanvorobei.io/github/readme/youtube-preview.jpg)](https://tutorials.ivanvorobei.io/youtube)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparrowcode%2Fuikitextension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsparrowcode%2Fuikitextension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparrowcode%2Fuikitextension/lists"}