在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):eonist/Element开源软件地址(OpenSource Url):https://github.com/eonist/Element开源编程语言(OpenSource Language):Swift 100.0%开源软件介绍(OpenSource Introduction):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 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:
iOS:Element for |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论