8000 GitHub - alex566/swiftui-egui-demo: Sample project that shows how to use SwiftUI together with egui
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

alex566/swiftui-egui-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

This project is demonstrating how egui can be embedded into swiftui project. An article can be found here

Structure

  • SmoothChat - Xcode project with swiftui implementation
  • smooth-ui - Rust package with egui implementation
  • smooth-ui/SmoothUI - SPM package with compiled egui implementation as XCFramework

Build instructions

In order to build the project you need to build XCFramework for egui first

cd smooth-ui
sh scripts/build_debug.sh

After that you can open the project from SmoothChat folder in Xcode and run

Dependencies

  • swift-bridge - For communication between swift and rust code bases
  • egui - The UI implementation in rust
  • wgpu - The graphics library for rendering egui in a metal view
  • font-kit - For dynamically loading system fonts

Real projects showcase

  • DataScout - Embedded databases debugging tool for macOS

About

Sample project that shows how to use SwiftUI together with egui

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0