{"id":23747736,"url":"https://github.com/space-code/flex-ui","last_synced_at":"2025-10-06T04:12:39.835Z","repository":{"id":270374784,"uuid":"910138194","full_name":"space-code/flex-ui","owner":"space-code","description":"flex-ui is a small tool that helps chain UI configurations.","archived":false,"fork":false,"pushed_at":"2025-08-12T13:24:58.000Z","size":60,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-09-06T11:57:14.541Z","etag":null,"topics":["chain","swift","uikit"],"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/space-code.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2024-12-30T15:33:14.000Z","updated_at":"2025-05-24T07:59:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"d6deb954-a3ce-4e72-a3e2-23fabed7c343","html_url":"https://github.com/space-code/flex-ui","commit_stats":null,"previous_names":["space-code/flex-ui"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/space-code/flex-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-code%2Fflex-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-code%2Fflex-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-code%2Fflex-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-code%2Fflex-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/space-code","download_url":"https://codeload.github.com/space-code/flex-ui/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-code%2Fflex-ui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278557065,"owners_count":26006265,"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-06T02:00:05.630Z","response_time":65,"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":["chain","swift","uikit"],"created_at":"2024-12-31T14:56:00.118Z","updated_at":"2025-10-06T04:12:39.806Z","avatar_url":"https://github.com/space-code.png","language":"Swift","readme":"\u003ch1 align=\"center\" style=\"margin-top: 0px;\"\u003eflex-ui\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/space-code/flex-ui/blob/main/LICENSE\"\u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/space-code/flex-ui?style=flat\"\u003e\u003c/a\u003e \n\u003ca href=\"https://swiftpackageindex.com/space-code/flex-ui\"\u003e\u003cimg alt=\"Swift Compatibility\" src=\"https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fspace-code%2Fflex-ui%2Fbadge%3Ftype%3Dswift-versions\"/\u003e\u003c/a\u003e \n\u003ca href=\"https://swiftpackageindex.com/space-code/flex-ui\"\u003e\u003cimg alt=\"Platform Compatibility\" src=\"https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fspace-code%2Fflex-ui%2Fbadge%3Ftype%3Dplatforms\"/\u003e\u003c/a\u003e \n\u003ca href=\"https://github.com/space-code/flex-ui\"\u003e\u003cimg alt=\"CI\" src=\"https://github.com/space-code/flex-ui/actions/workflows/ci.yml/badge.svg?branch=main\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/space-code/flex-ui\"\u003e\u003cimg alt=\"GitHub release; latest by date\" src=\"https://img.shields.io/github/v/release/space-code/flex-ui\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/apple/swift-package-manager\" alt=\"flex-ui on Swift Package Manager\" title=\"flex-ui on Swift Package Manager\"\u003e\u003cimg src=\"https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Description\n`flex-ui` is a small tool that helps chain UI configurations.\n\n- [Usage](#usage)\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Communication](#communication)\n- [Contributing](#contributing)\n- [Author](#author)\n- [License](#license)\n\n## Usage\n\n```swift\nimport FlexUI\n\nlet label = UILabel()\n        \nlabel\n    .flex\n    .text(\"Label Text\")\n    .textColor(.black)\n    .font(.systemFont(ofSize: 17.0))\n```\n\nNew configuration methods can be added by extending the interface of the Flex component, such as:\n\n```swift\nimport FlexUI\nimport UIKit\n\npublic enum Fonts {\n    public enum Headings {\n        /// The largest heading style.\n        case h1\n\n        /// A slightly smaller heading style.\n        case h2\n\n        /// A medium-sized heading style.\n        case h3\n\n        var font: UIFont {\n            /// Implementation to return a specific UIFont based on the heading style.\n        }\n    }\n}\n\npublic extension FlexUI where Component: UIButton {\n    @discardableResult\n    @MainActor\n    func font(_ heading: Fonts.Headings) -\u003e Self {\n        component.titleLabel?.font = heading.font\n        return self\n    }\n}\n\nlet button = UIButton()\n\nbutton\n    .flex\n    .font(.h3)\n```\n\n## Requirements\n\n- iOS 14.0+\n- Xcode 16.0\n- Swift 6.0\n\n## Installation\n### Swift Package Manager\n\nThe [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler. It is in early development, but `flex-ui` does support its use on supported platforms.\n\nOnce you have your Swift package set up, adding `flex-ui` as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/space-code/flex-ui.git\", .upToNextMajor(from: \"1.0.0\"))\n]\n```\n\n## Communication\n- If you **found a bug**, open an issue.\n- If you **have a feature request**, open an issue.\n- If you **want to contribute**, submit a pull request.\n\n## Contributing\nBootstrapping development environment\n\n```\nmake bootstrap\n```\n\nPlease feel free to help out with this project! If you see something that could be made better or want a new feature, open up an issue or send a Pull Request!\n\n## Author\nNikita Vasilev, nv3212@gmail.com\n\n## License\nflex-ui is available under the MIT license. See the LICENSE file for more info.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspace-code%2Fflex-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspace-code%2Fflex-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspace-code%2Fflex-ui/lists"}