SwiftGUI is an experimental API inspired by SwiftUI declarative code, using Dear ImGui and running on OSX and iOS.
Window("SwiftGUI") {
Text("Hello world!")
HStack {
RadioButtonGroup(["radio a", "radio b", "radio c"],
selectedState: radioState) {
self.radioState = $0
}
}
HStack {
ForEach(1...7) { val in
Button("Click \(val)")
}
}
}
Carthage is intended to be the simplest way to add frameworks to your Cocoa application. Builds your dependencies and provides you with binary frameworks, but you retain full control over your project structure and setup. Carthage does not automatically modify your project files or your build settings.
To integrate SwiftGUI
into your Xcode project using Carthage, specify it in your Cartfile
:
github "erickjung/SwiftGUI" "0.6.1"
For OSX
project, run:
carthage update --platform macOS
For iOS
project, run:
carthage update --platform iOS
- Color scheme (embedded Darcula and Light)
- Custom Fonts (embedded FiraCode and DroidSans)
- Buttons
- CheckBox
- Color Selection
- ComboBox
- Drag
- Dock
- Image
- InputFields
- Lists
- Menu
- Plotting
- Popup
- RadioButton
- SelectableFields
- Sliders
- TabBar
- Texts
- Text Editor (Code editor)
- Tooltips
- Tree
- Window
- General
- Group
- HStack
- Separator/NewLine/Spacing/Indent
- ForEach
- Perform
- SwiftGUI-Core: Internal framework abstraction for cimgui
- SwiftGUI-PlatformiOS: Specific iOS renderer/handler code
- SwiftGUI-PlatformOSX: Specific OSX renderer/handler code
- SwiftGUI: The SwiftUI inspired API code
- Demos: Samples for OSX and iOS
- Sample01-OSX: General app to show how widgets works
- Sample02-OSX: Simple functional TODO app
- Sample01-iOS: General app to show how widgets works
- MIT
- Dear ImGui (1.74)
- cimgui
- ImGuiColorTextEdit