erickjung / Swiftgui
Licence: mit
SwiftGUI is an API inspired by SwiftUI DSL, using Dear ImGui as renderer and running on macOS 10.13+ and iOS 11+
Stars: ✭ 74
Programming Languages
swift
15916 projects
Labels
Projects that are alternatives of or similar to Swiftgui
Iconfontcppheaders
C, C++ headers and C# classes for icon fonts: Font Awesome, Fork Awesome, Material Design, Kenney game icons and Fontaudio
Stars: ✭ 509 (+587.84%)
Mutual labels: gui, imgui
Dearpygui
Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies
Stars: ✭ 6,631 (+8860.81%)
Mutual labels: gui, imgui
Imgui
Bloat-free Immediate Mode Graphical User interface for JVM with minimal dependencies (rewrite of dear imgui)
Stars: ✭ 394 (+432.43%)
Mutual labels: gui, imgui
Giu
Cross platform rapid GUI framework for golang based on Dear ImGui.
Stars: ✭ 862 (+1064.86%)
Mutual labels: gui, imgui
Nuklear
A single-header ANSI C immediate mode cross-platform GUI library
Stars: ✭ 5,055 (+6731.08%)
Mutual labels: gui, imgui
Cimgui
c-api for imgui (https://github.com/ocornut/imgui) Look at: https://github.com/cimgui for other widgets
Stars: ✭ 707 (+855.41%)
Mutual labels: gui, imgui
Cvui
A (very) simple UI lib built on top of OpenCV drawing primitives
Stars: ✭ 619 (+736.49%)
Mutual labels: gui, imgui
Compose Jb
Jetpack Compose for Desktop and Web, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
Stars: ✭ 7,562 (+10118.92%)
Mutual labels: gui, declarative-ui
Wtk
📺 A cross-platform immediate mode user-interface library. Public domain.
Stars: ✭ 30 (-59.46%)
Mutual labels: gui, imgui
Imgui Plot
An improved plot widget for Dear ImGui, aimed at displaying audio data
Stars: ✭ 332 (+348.65%)
Mutual labels: gui, imgui
Imgui Go
Go wrapper library for "Dear ImGui" (https://github.com/ocornut/imgui)
Stars: ✭ 499 (+574.32%)
Mutual labels: gui, imgui
Love Nuklear
Lightweight immediate mode GUI for LÖVE games
Stars: ✭ 281 (+279.73%)
Mutual labels: gui, imgui
Layout
Single-file library for calculating 2D UI layouts using stacking boxes. Compiles as C99 or C++.
Stars: ✭ 551 (+644.59%)
Mutual labels: gui, imgui
Rapidgui
Unity OnGUI(IMGUI) extensions for Rapid prototyping/development
Stars: ✭ 144 (+94.59%)
Mutual labels: gui, imgui
Webgui
An example demo of IMGUI (Immediate Mode GUI) on the web. Using only WebGL, GLFW and ImGui. Suitable for being compiled to web assembly (WASM).
Stars: ✭ 180 (+143.24%)
Mutual labels: gui, imgui
Walk
A Windows GUI toolkit for the Go Programming Language
Stars: ✭ 5,813 (+7755.41%)
Mutual labels: gui, declarative-ui
Imgui
Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
Stars: ✭ 33,574 (+45270.27%)
Mutual labels: gui, imgui
SwiftGUI is an experimental API inspired by SwiftUI DSL, using Dear ImGui as renderer and running on OSX and iOS.
Window("SwiftGUI") {
Text("Hello world!")
HStack {
ForEach(1...2) { val in
Button("Click \(val)")
}
ForEach(1...2) { val in
CheckBox("Check \(val)", selectedState: true)
}
ForEach(1...2) { val in
RadioButton("Radio \(val)", activeState: true)
}
}
}
Highlights
- Easy to use abstraction for Dear ImGui
- Multi-platform support (iOS 11+ and macOS 10.13+)
- Huge list of UI components already available
Theme support
- Color scheme (embedded Darcula and Light)
- Custom Fonts (embedded FiraCode)
Components
- Buttons
- CheckBox
- Color Selection
- ComboBox
- Drag
- Dock
- Image
- TextField
- 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
Installation
Carthage
To integrate SwiftGui
into your Xcode project using Carthage, specify it in your Cartfile
:
github "erickjung/SwiftGUI" "0.9.3"
For OSX
project, run:
carthage update --platform macOS
For iOS
project, run:
carthage update --platform iOS
Cocoapods
To integrate SwiftGui
into your Xcode project using Cocoapods, specify it in your Podfile
:
pod 'SwiftGui', '~> 0.9.3'
run:
pod install
Using SwiftGUI
Mockingbird |
---|
Samples
macOS Sample 01 | macOS Sample 02 | iOS Sample 01 |
---|
Contributing
Read the Contributing guidelines
License
Using
- Dear ImGui (1.77)
- ImGuiColorTextEdit
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].