Popularity
6.6
Stable
Activity
3.1
Declining
858
24
39

Code Quality Rank: L4
Programming language: Swift
Tags: UI    
Latest version: v0.0.0-alpha.9

Element alternatives and similar libraries

Based on the "UI" category.
Alternatively, view Element alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Element or a related project?

Add another 'UI' Library

README

MIT Status platform Lang SPM  compatible codebeat badge

Description:

Programmatic UI Framework for macOS. Swift handles app logic, CSS/SVG handles design and JSON handles struture.

Installation:

Step 1: Add this to your Package.swift Tutorial

import PackageDescription
let package = Package(
    name: "AwesomeApp",
    dependencies: [
       .Package(url: "https://github.com/eonist/Element.git", Version(0, 0, 0, prereleaseIdentifiers: ["alpha", "5"]))
    ]
)

Step 2: In AppDelegate.swift add this to the top @testable import Element and @testable import Utilsand this inside the applicationDidFinishLaunching method:

StyleManager.addStyle("Button{fill:blue;}")
let btn = Button(100,20)
let window = NSApp.windows[0]
window.contentView = InteractiveView()/*TopLeft orientation*/
window.contentView?.addSubview(btn)
btn.addHandler(.upInside) = { (event:ButtonEvent) in
   Swift.print("hello world")
}

You can also compile Element as a regular .framework instructions here

Resources:

  • Simple example app made with Element: Stash
  • Library of example code for each component in Element: Explorer
  • Default macOS styles to get you started: ElCapitan

iOS:

Element for 📱 is in the works here

More...

More about Element 👉 wiki

Sponsors:


*Note that all licence references and agreements mentioned in the Element README section above are relevant to that project's source code only.