In the beginning, the swift programming language was called Shiny (as in “this new shiny thing”), that is the reason of the framework's name.
ShinyUI does not pretend imitate or copy SwiftU, It is just inspired in SwiftUI.
Kind of, you can take a look here, the only difference for now is the opaque return type, it was changed to a simple existential return.
struct App: View {
@State var count: Int = 0
var body: some View {
VStack {
Text("You have pushed the button this many times:")
.font("", 15)
.foregroundColor(Color(0x282828))
Text("\(count)")
.font("", 30)
.foregroundColor(Color(0x282828))
.margin(vertical(30))
Text("🚀 Tap me")
.font("", 20)
.color(Color(0xFFFFFF, alpha: 0))
.foregroundColor(Color(0xFFFFFF))
.margin {
horizontal(15)
vertical(10)
}
.decorate {
color(Color(0xFF555B))
cornerRadius(25)
}
.onTap {
count += 1
}
}
.center()
}
}
Result:
macOS:
iOS:
Status | Name | Notes |
---|---|---|
UIKit |
Still under development | |
❌ | Skia |
To support platforms outside Apple ecosystem |
ShinyUI is released under the BSD License.