{"id":16061236,"url":"https://github.com/krzyzanowskim/swiftui.splitview","last_synced_at":"2025-03-17T16:32:26.820Z","repository":{"id":49401270,"uuid":"517633436","full_name":"krzyzanowskim/SwiftUI.SplitView","owner":"krzyzanowskim","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-25T14:47:25.000Z","size":24,"stargazers_count":45,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-04-14T07:11:18.899Z","etag":null,"topics":["splitview","swiftui","swiftui-components"],"latest_commit_sha":null,"homepage":"https://swift.best","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/krzyzanowskim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["krzyzanowskim"]}},"created_at":"2022-07-25T11:15:38.000Z","updated_at":"2024-02-27T02:09:01.000Z","dependencies_parsed_at":"2022-09-22T19:00:36.176Z","dependency_job_id":null,"html_url":"https://github.com/krzyzanowskim/SwiftUI.SplitView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzyzanowskim%2FSwiftUI.SplitView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzyzanowskim%2FSwiftUI.SplitView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzyzanowskim%2FSwiftUI.SplitView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzyzanowskim%2FSwiftUI.SplitView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krzyzanowskim","download_url":"https://codeload.github.com/krzyzanowskim/SwiftUI.SplitView/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871888,"owners_count":20361379,"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":["splitview","swiftui","swiftui-components"],"created_at":"2024-10-09T04:08:16.174Z","updated_at":"2025-03-17T16:32:26.434Z","avatar_url":"https://github.com/krzyzanowskim.png","language":"Swift","funding_links":["https://github.com/sponsors/krzyzanowskim"],"categories":[],"sub_categories":[],"readme":"# SplitView\n\nExperimental SwiftUI.SplitView (Vertical/Horizontal) view.\n\nWhy? Because NSSplitView takes too much energy from whoever willing to make it work predictably.\n\nhttps://user-images.githubusercontent.com/758033/180766261-ad9ce52f-cb9b-4112-bd9c-1df6cb777033.mp4\n\n# Use\n\n```swift\nimport SplitView\n\nstruct ContentView: View {\n\n    var body: some View {\n        SplitView(orientation: .constant(.horizontal)) {\n            SampleContent()\n            SampleContent()\n            SplitView(orientation: .constant(.vertical)) {\n                SampleContent()\n                SampleContent()\n                SampleContent()\n            }\n            SampleContent()\n            SampleContent()\n            SplitView(orientation: .constant(.vertical)) {\n                SampleContent()\n                SampleContent()\n                SampleContent()\n            }\n        }\n    }\n    \n}\n\nprivate struct SampleContent: View {\n    var body: some View {\n        ZStack {\n            Rectangle()\n                .foregroundColor(.yellow)\n\n            HStack {\n                Text(\"Lorem ipsum\")\n            }\n        }\n    }\n}\n```\n\n# Contribution\n\nWork in progress 👷‍♂️\nFeel free to Discuss and submit Pull Request\n\n## Design notes\n\n![FYgUFPSXkAAvLdn](https://user-images.githubusercontent.com/758033/180767478-f2522595-31ff-4790-a5ff-e37ec14c8eb0.jpg)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrzyzanowskim%2Fswiftui.splitview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrzyzanowskim%2Fswiftui.splitview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrzyzanowskim%2Fswiftui.splitview/lists"}