Working on a declarative UI Library, what would you want?

Dear UI Developers,

I am Willi, an App Store developer who loves how SwiftUI works.

I am on a mission to make Roblox UI Easier, specifically, I am making a UI Framework with a declarative syntax similar to SwiftUI

In case you don’t know what I am talking about, here is an example:

local williUI = require(path to module)

local UI = {
   Text("Whats up everyone!")
   Button("This is a button", { -- run any code here
      print("Hello, world!")
   })
}

williUI:Create(williUI) 

And that code will create this:
image

You will also be able to chain modifiers to get the exact detail you want:

Text("Yo what!?")
   .font(Enum.Font.Nunito, 50)

-- or

Text("This is scaled")
   .textScaled()

In fact, I have a working prototype with modifiers, but not these specific ones.

Now I have secret plans that are not ready yet, but I know I will stand out. I want to give all UI Designers the “wow, this is revolutionary” and “how did I live this long without something like this”.

I want to ask you (the developer, UI designer or not) what you would want the most out of my UI Library. My goal is to try to make UI Designing easy yet having an advanced framework so that even the best UI Designers can create the best UI.

The module is far from ready, and I still need a lot of time to perfect things, so it is not available at the moment, but it will be worth the wait!

Sincerely Willi

I’m not sure but, isn’t there errors in the table ?
It’s a great idea, to make UI only by script. BUT, i guess you can think differently and make something like:

  1. I open a “box/container”
  2. Everything inside that container (code run, like Button() or Text()) is put on that container
  3. I close the container and every function called after throws an error

With that, you allow people be more flexible with their code and make it easier.
You can use RageUI as a reference, it uses the same system if I’m not wrong.

There’s many exploits libraries that use the same code (uh), you can dive into them to explore many designs !

Hope I helped you. If you need more advice or you want me to explain it better / in details, tell me :slight_smile:

1 Like