{"id":21586161,"url":"https://github.com/mmmagiccoder/tabfinity","last_synced_at":"2025-05-04T08:35:08.198Z","repository":{"id":222343825,"uuid":"756964104","full_name":"MMMagicCoder/Tabfinity","owner":"MMMagicCoder","description":"📱♾️ Tabfinity is highly adaptive and customizable iOS TabView / Tab bar for your SwiftUI application.","archived":false,"fork":false,"pushed_at":"2024-03-17T12:29:35.000Z","size":72,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-03T23:28:56.987Z","etag":null,"topics":["bar","custom-tab-bar","custom-tab-view","custom-tabbar","custom-tabview","ios","library","swift","swift-package-manager","swift-ui","swiftui","tab","tab-bar","tabbar","tabview","uitabbar","uitabbarcontroller","view","xcode"],"latest_commit_sha":null,"homepage":"","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/MMMagicCoder.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-13T16:41:10.000Z","updated_at":"2025-01-21T21:50:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"623a6470-02f9-4426-ba5e-df456a77c5a9","html_url":"https://github.com/MMMagicCoder/Tabfinity","commit_stats":null,"previous_names":["mohammadmahdimoayeri/tablight","mohammadmahdimoayeri/tabfinity","mmmagiccoder/tabfinity"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMMagicCoder%2FTabfinity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMMagicCoder%2FTabfinity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMMagicCoder%2FTabfinity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMMagicCoder%2FTabfinity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MMMagicCoder","download_url":"https://codeload.github.com/MMMagicCoder/Tabfinity/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252309943,"owners_count":21727467,"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":["bar","custom-tab-bar","custom-tab-view","custom-tabbar","custom-tabview","ios","library","swift","swift-package-manager","swift-ui","swiftui","tab","tab-bar","tabbar","tabview","uitabbar","uitabbarcontroller","view","xcode"],"created_at":"2024-11-24T15:12:50.139Z","updated_at":"2025-05-04T08:35:08.173Z","avatar_url":"https://github.com/MMMagicCoder.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tabfinity\n\n ![](https://img.shields.io/badge/platform-iOS-d3d3d3) ![](https://img.shields.io/badge/iOS-14.0%2B-43A6C6) ![](https://img.shields.io/badge/Swift-5-F86F15)\n\nThis library aims to enhance the flexibility of the standard `TabView` component in `SwiftUI`. Instead of being restricted by the limitations of the default TabView, users can now effortlessly customize their tab bars with a variety of stylish options provided by this library. Say goodbye to the hassle of modifying appearance proxies or building custom tab bars from scratch – with this solution, you'll have access to a range of sleek and impressive TabBar styles to elevate your projects.\n\n## Table of contents\n   - [Requirements](#requirements)\n   - [Installation](#installation)\n     - [Swift Package Manager (SPM)](#spm)\n   - [Usage](#usage)\n     - [Customization](#customization)\n   - [Contribution](#contribution)\n   - [License](#license)\n\n## Requirements\n\u003ca id=\"requirements\"\u003e\u003c/a\u003e\n   - SwiftUI\n   - iOS 14.0 or above\n\n## Installation\n\u003ca id=\"installation\"\u003e\u003c/a\u003e\nYou can access Tabfinity through [Swift Package Manager](https://github.com/apple/swift-package-manager).\n### Swift Package Manager (SPM)\n\u003ca id=\"spm\"\u003e\u003c/a\u003e\nIn xcode select:\n```\nFile \u003e Swift Packages \u003e Add Package Dependency...\n```\nThen paste this URL:\n```\nhttps://github.com/MMMagicCoder/Tabfinity.git\n```\n\n## Usage\n\u003ca id=\"usage\"\u003e\u003c/a\u003e\nTo start using the `Tabfinity`, you need to define an enumeration that conforms to the `Finitable` protocol:\n```swift\nenum Item: Int, Finitable {\n    case home, favorites, profile\n    \n    var icon: String {\n        switch self {\n        case .home: return \"house\"\n        case .favorites: return \"heart\"\n        case .profile: return \"person\"\n        }\n    }\n    \n    var title: String {\n        switch self {\n        case .home: return \"Home\"\n        case .favorites: return \"Favorites\"\n        case .profile: return \"Profile\"\n        }\n    }\n    \n    var color: Color {\n        switch self {\n        case .home: return Color.red\n        case .favorites: return Color.blue\n        case .profile: return Color.green\n        }\n    }\n}\n```\nAfterward, you will be able to instantiate a Tabfinity:\n```swift\nstruct ContentView: View {\n    @State private var selection: Item = .home\n    \n    var body: some View {\n        Tabfinity(selection: $selection) {\n            Text(\"First Tab\")\n                .tabfinityItem(for: Item.home)\n            \n            Text(\"Second Tab\")\n                .tabfinityItem(for: Item.favorites)\n            \n            Text(\"Third Tab\")\n                .tabfinityItem(for: Item.profile)\n        }\n        .tabfinityContainer(style: DefaultContainerStyle())\n        .tabfinityItem(style: DefaultItemStyle())\n    }\n}\n```\nFollowing these steps, a tabfinity with the default style will be generated.\n\n### Customization\n\u003ca id=\"customization\"\u003e\u003c/a\u003e\nThe Tabfinity can be changed a lot. You can make it look however you want by using `TabfinityContainerStyle` and `TabfinityItemStyle`. You can easily adjust the size and position of items using the `TabfinityItemSize` class. This class helps you find out how big items are and where they are placed, so you can customize them exactly how you want. These let you create your own unique tab bar designs. When you make custom styles, the tabfinity automatically puts them at the bottom. Explore the examples provided in this package to learn how to customize your tab bar effectively with Tabfinity. \n\nOnce you've made your custom styles, you can easily use them in your tabfinity. Here's an example of what the default tab bar looks like, and some custom design you could use or make:\n\n![Show cases](https://github.com/MMMagicCoder/MMMagicCoder/blob/1a835aca4e1195cb64d540f2243d9ac949362651/Tabfinity/Show%20cases/Simulator%20Screenshot%20-%20iPhone%2015%20Pro%20-%202024-03-11%20at%2019.43.21.png)\n\n## Contribution\n\u003ca id=\"contribution\"\u003e\u003c/a\u003e\nIf you encounter any challenges, please feel free to [open an issue](https://github.com/MMMagicCoder/Tabfinity/issues/new). Additionally, we welcome and appreciate pull requests for any improvements or contributions.\n\n## License\n\u003ca id=\"license\"\u003e\u003c/a\u003e\nTabfinity is under the terms and conditions of the MIT license.\n```\nMIT License\n\nCopyright (c) 2024 Mohammad Mahdi Moayeri\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmmagiccoder%2Ftabfinity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmmagiccoder%2Ftabfinity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmmagiccoder%2Ftabfinity/lists"}