{"id":17279555,"url":"https://github.com/bobek-balinek/helios","last_synced_at":"2025-09-26T09:30:37.618Z","repository":{"id":144917506,"uuid":"241663515","full_name":"bobek-balinek/Helios","owner":"bobek-balinek","description":"A collection of useful property wrappers for your UIKit needs","archived":false,"fork":false,"pushed_at":"2020-02-23T16:30:23.000Z","size":61,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T09:43:12.662Z","etag":null,"topics":["apple","ios","property-wrapper","propertywrapper","swift","swift5","uikit","uiview","utility"],"latest_commit_sha":null,"homepage":null,"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/bobek-balinek.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":"2020-02-19T16:19:21.000Z","updated_at":"2023-03-17T12:22:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d3a12b3-0f03-4c4a-b3c9-bf2eb54094a8","html_url":"https://github.com/bobek-balinek/Helios","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bobek-balinek/Helios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobek-balinek%2FHelios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobek-balinek%2FHelios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobek-balinek%2FHelios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobek-balinek%2FHelios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bobek-balinek","download_url":"https://codeload.github.com/bobek-balinek/Helios/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobek-balinek%2FHelios/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277055555,"owners_count":25752820,"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":["apple","ios","property-wrapper","propertywrapper","swift","swift5","uikit","uiview","utility"],"created_at":"2024-10-15T09:17:58.542Z","updated_at":"2025-09-26T09:30:37.331Z","avatar_url":"https://github.com/bobek-balinek.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"images/helios-logo.png\" alt=\"Swift logo\" height=\"128\"\u003e\n\n# Helios\n\nA small library providing a set of Swift 5.1's Property Wrappers to be used with UIKit.\n\n\u003e NOTE: This library is under active development and the selection of property wrappers may change.\n\n## Installation\n\nAdd this package to the Swift Packages list in your Xcode project settings. Alternatively add: `.package(url: \"https://github.com/bobek-balinek/Helios.git\", from: \"0.1.0\")`  to your `Package.swift` file.\n\n## Available property wrappers\n\n### @FixedSize\n\nThis property wrapper let's you quickly define, using AutoLayout width and height dimensions for a wrapped `UIView`.\n\n```swift\nclass MyView: UIView {\n\t@FixedSize(50, 50, radius: 25)\n\tvar thumbnailImage: UIImageView = UIImageView()\n\n\t// …\n}\n```\n\n`@FixedSize` takes up to three arguments: `width: CGFloat`, `height: CGFloat`, and `radius: CGFloat`. You can define width-only, width and height, or width, height and additionally clip the corners with a given radius.\n\n---\n\n### @AspectRatio\n\nThis property wrapper let's you quickly define, using AutoLayout dimensions of a wrapped `UIView`, respecting given aspect ratio.\n\n```swift\nclass MyView: UIView {\n\t@AspectRatio(4/3, radius: 15)\n\tvar productImage: UIImageView = UIImageView()\n\n\t// …\n}\n```\n\n`@AspectRatio` takes up to two arguments: `ratio: CGFloat` and `radius: CGFloat`. Radius can additionally clip the corners with a given radius.\n\n---\n\n### @RoundedCorners\n\n`@RoundedCorners` clips the corners of a wrapped UIView with a given radius.\n\n```swift\nclass MyView: UIView {\n\t@RoundedCorners(25)\n\tvar thumbnailImage: UIImageView = UIImageView()\n\n\t// …\n}\n```\n\n---\n\n### @FontSize\n\n`@FontSize` sets a system font of a given size on a wrapped `UILabel` instance. Additionally, you can set font weight and text color.\n\n```swift\nclass MyView: UIView {\n\t@FontSize(24, weight: .bold, color: .red)\n\tvar headingLabel: UILabel = UILabel()\n\n\t// …\n}\n```\n\n---\n\n### @TextStyle\n\n`@TextStyle` configures wrapped `UILabel` to use dynamic font style and sets a given `UIFont.TextStyle`. Additionally, you can set text alignment, text color and font traits such as bold or italic.\n\n```swift\nclass MyView: UIView {\n\t@TextStyle(.title1, color: .red, alignment: .center, fontTraits: [.bold])\n\tvar headingLabel: UILabel = UILabel()\n\n\t// …\n}\n```\n\nHope you'll enjoy using Helios in your iOS apps!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobek-balinek%2Fhelios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbobek-balinek%2Fhelios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobek-balinek%2Fhelios/lists"}