{"id":28088940,"url":"https://github.com/robb/redline","last_synced_at":"2025-05-13T12:52:40.522Z","repository":{"id":290711468,"uuid":"975086875","full_name":"robb/Redline","owner":"robb","description":"Redlines for SwiftUI","archived":false,"fork":false,"pushed_at":"2025-04-29T19:14:12.000Z","size":314,"stargazers_count":294,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T15:16:15.321Z","etag":null,"topics":["design","figma","swiftui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":false,"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/robb.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,"zenodo":null}},"created_at":"2025-04-29T19:02:05.000Z","updated_at":"2025-05-07T07:46:42.000Z","dependencies_parsed_at":"2025-04-30T06:52:23.154Z","dependency_job_id":null,"html_url":"https://github.com/robb/Redline","commit_stats":null,"previous_names":["robb/redline"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robb%2FRedline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robb%2FRedline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robb%2FRedline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robb%2FRedline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robb","download_url":"https://codeload.github.com/robb/Redline/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253947818,"owners_count":21988945,"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":["design","figma","swiftui"],"created_at":"2025-05-13T12:52:39.947Z","updated_at":"2025-05-13T12:52:40.512Z","avatar_url":"https://github.com/robb.png","language":"Swift","readme":"# Redline\n\n## Easy Redlines for SwiftUI\n\nWith Redline, you can quickly visualize positions, sizes, spacings and alignment guides to verify your implementation against specs or to debug layout problem.\n\n![](/example.png)\n\n```swift\nimport Redline\n\nGroupBox {\n    VStack(spacing: 24) {\n        Image(systemName: \"globe\")\n            .resizable()\n            .aspectRatio(contentMode: .fit)\n            .frame(width: 80, height: 80)\n            .foregroundStyle(.tint)\n            .measureSpacing()\n            .visualizePosition(color: .blue, in: .named(\"outside\"))\n            .visualizeSize()\n\n        HStack(alignment: .firstTextBaseline) {\n            Image(systemName: \"figure.wave\")\n                .visualizeAlignmentGuide(.firstTextBaseline)\n\n            Text(\"Hello, world!\\nHow are you?\")\n                .visualizeAlignmentGuide(.firstTextBaseline)\n        }\n        .measureSpacing()\n\n        Text(\"Thank you, bye\").font(.caption)\n            .measureSpacing()\n            .visualizePosition(color: .blue, edges: [.bottom, .trailing], in: .named(\"outside\"))\n    }\n    .visualizeSpacing(axis: .vertical)\n    .padding(8)\n}\n.visualizeSize()\n.coordinateSpace(name: \"outside\")\n.visualizePosition(color: .blue)\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobb%2Fredline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobb%2Fredline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobb%2Fredline/lists"}