AngelLandoni / ShinyUI

WIP - A simple declarative UI framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple declarative UI framework

Currently, this project is in early development

Why "ShinyUI"?.

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.

What it is not.

ShinyUI does not pretend imitate or copy SwiftU, It is just inspired in SwiftUI.

Does ShinyUI support iOS9 and laters?

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.

Example

Simple counter

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:

Renderers

Status Name Notes
⚠️ UIKit Still under development
Skia To support platforms outside Apple ecosystem

License

ShinyUI is released under the BSD License.

About

WIP - A simple declarative UI framework.


Languages

Language:Swift 99.3%Language:C 0.7%