Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.
/ ShinyUI Public archive

WIP - A simple declarative UI framework.

Notifications You must be signed in to change notification settings

AngelLandoni/ShinyUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published