{"id":13995329,"url":"https://github.com/erickjung/SwiftGUI","last_synced_at":"2025-07-22T21:32:41.076Z","repository":{"id":44469673,"uuid":"219297026","full_name":"erickjung/SwiftGUI","owner":"erickjung","description":"SwiftGUI is an API inspired by SwiftUI DSL, using Dear ImGui as renderer and running on macOS 10.13+ and iOS 11+","archived":false,"fork":false,"pushed_at":"2020-07-02T20:34:51.000Z","size":19577,"stargazers_count":131,"open_issues_count":0,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-18T16:58:01.392Z","etag":null,"topics":["declarative-ui","gui","imgui","swift","swiftui"],"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/erickjung.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-03T12:24:46.000Z","updated_at":"2024-11-14T22:55:06.000Z","dependencies_parsed_at":"2022-07-16T16:17:06.402Z","dependency_job_id":null,"html_url":"https://github.com/erickjung/SwiftGUI","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erickjung%2FSwiftGUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erickjung%2FSwiftGUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erickjung%2FSwiftGUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erickjung%2FSwiftGUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erickjung","download_url":"https://codeload.github.com/erickjung/SwiftGUI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227177917,"owners_count":17743200,"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":["declarative-ui","gui","imgui","swift","swiftui"],"created_at":"2024-08-09T14:03:21.060Z","updated_at":"2024-11-29T17:31:32.252Z","avatar_url":"https://github.com/erickjung.png","language":"Swift","readme":"\u003ccenter\u003e\n\n![SwiftGUI](Docs/swiftgui.png)\n\n[![license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE)\n[![swift version](https://img.shields.io/badge/swift-5.0+-brightgreen.svg)](https://swift.org/download)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\n\u003cb\u003eSwiftGUI\u003c/b\u003e is an experimental API inspired by \u003cb\u003eSwiftUI\u003c/b\u003e DSL, using Dear ImGui as renderer and running on OSX and iOS.\n\u003c/center\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"Docs/hellow_world.png\" alt=\"hellow world\"/\u003e\n\u003c/p\u003e\n\n```swift\nWindow(\"SwiftGUI\") {\n\n    Text(\"Hello world!\")\n\n    HStack {\n        ForEach(1...2) { val in\n            Button(\"Click \\(val)\")\n        }\n\n        ForEach(1...2) { val in\n            CheckBox(\"Check \\(val)\", selectedState: true)\n        }\n\n        ForEach(1...2) { val in\n            RadioButton(\"Radio \\(val)\", activeState: true)\n        }\n    }\n}\n```\n\n## Highlights\n\n* Easy to use abstraction for Dear ImGui\n* Multi-platform support (iOS 11+ and macOS 10.13+)\n* Huge list of UI components already available\n\n### Theme support\n    - Color scheme (embedded Darcula and Light)\n    - Custom Fonts (embedded FiraCode)\n\n### Components\n    - Buttons\n    - CheckBox\n    - Color Selection\n    - ComboBox\n    - Drag\n    - Dock\n    - Image\n    - TextField\n    - Lists\n    - Menu\n    - Plotting\n    - Popup\n    - RadioButton\n    - SelectableFields\n    - Sliders\n    - TabBar\n    - Texts\n    - Text Editor (Code editor)\n    - Tooltips\n    - Tree\n    - Window\n    - General \n        - Group\n        - HStack\n        - Separator/NewLine/Spacing/Indent\n        - ForEach\n        - Perform\n\n\n## Installation\n\n### Carthage\n\nTo integrate `SwiftGui` into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"erickjung/SwiftGUI\" \"0.9.3\"\n```\n\nFor `OSX` project, run:\n\n```ogdl\ncarthage update --platform macOS\n```\n\nFor `iOS` project, run:\n\n```ogdl\ncarthage update --platform iOS\n```\n\n### Cocoapods\n\nTo integrate `SwiftGui` into your Xcode project using Cocoapods, specify it in your `Podfile`:\n\n```ogdl\npod 'SwiftGui', '~\u003e 0.9.3'\n```\n\nrun:\n\n```ogdl\npod install\n```\n\n## Using SwiftGUI\n\n\u003ctable\u003e\n \u003ctr\u003e\n  \u003cth\u003e\n    \u003ca href=\"https://github.com/Farfetch/mockingbird\"\u003e\u003cimg src=\"https://github.com/Farfetch/mockingbird/blob/master/docs/screenshot.png\"/\u003e\u003c/a\u003e\n  \u003c/th\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n  \u003cth\u003e\n   \u003ca href=\"https://github.com/Farfetch/mockingbird\"\u003eMockingbird\u003c/a\u003e \n  \u003c/th\u003e\n \u003c/tr\u003e\n\u003c/table\u003e\n\n## Samples\n\n\u003ctable\u003e\n \u003ctr\u003e\n  \u003cth\u003e\n    \u003cimg src=\"Docs/sample01-osx.gif\"/\u003e\n  \u003c/th\u003e\n  \u003cth\u003e\n    \u003cimg src=\"Docs/sample02-osx.gif\"/\u003e\n  \u003c/th\u003e\n  \u003cth\u003e\n    \u003cimg src=\"Docs/sample01-ios.jpg\"/\u003e\n  \u003c/th\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n  \u003cth\u003e\n   \u003ca href=\"https://github.com/erickjung/SwiftGUI/tree/master/Source/Sample01Mac\"\u003emacOS Sample 01\u003c/a\u003e\n  \u003c/th\u003e\n  \u003cth\u003e\n   \u003ca href=\"https://github.com/erickjung/SwiftGUI/tree/master/Source/Sample02Mac\"\u003emacOS Sample 02\u003c/a\u003e\n  \u003c/th\u003e\n  \u003cth\u003e\n   \u003ca href=\"https://github.com/erickjung/SwiftGUI/tree/master/Source/Sample01iOS\"\u003eiOS Sample 01\u003c/a\u003e\n  \u003c/th\u003e\n \u003c/tr\u003e\n\u003c/table\u003e\n\n## Contributing\n\nRead the [Contributing guidelines](CONTRIBUTING.md)\n\n## License\n\n [MIT](LICENSE)\n\n## Using \n\n* [Dear ImGui](https://github.com/ocornut/imgui) (1.77)\n* [ImGuiColorTextEdit](https://github.com/BalazsJako/ImGuiColorTextEdit)\n\n","funding_links":[],"categories":["Swift","C++"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferickjung%2FSwiftGUI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferickjung%2FSwiftGUI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferickjung%2FSwiftGUI/lists"}