framework instructions
Eonist edited this page Mar 28, 2017
·
1 revision
Pages 47
- Home
- animation
- Button
- changelog
- CheckBoxButton
- ColorBox
- ColorInput
- ColorPanel
- ColorTags
- comarison_chart
- ComboBox
- diagrams
- FastList
- framework instructions
- GradientPanel
- hello world
- HNodeSlider
- how it works
- IconBar
- IconButton
- IconButtons
- LeverSpinner
- List
- live
- overview
- RadioBullet
- RadioButton
- RBSliderFastList
- RBSliderList
- SearchBox
- SelectButton
- SingleLineTextArea
- Slider
- SliderList
- SliderTextArea
- SliderTreeList
- Stepper
- TabBar
- Table
- TextArea
- TextButton
- TextInput
- TreeList
- tutorials
- VNodeSlider
- VolumeSlider
- Window
- Show 32 more pages…
Info
Components (Advance)
Components (Other)
Components (Basic)
- Download Element and swift-utils
- make .framework from swift-utils files
- make .framework from Element files (drag Utils.framework into framework project)
- make a new App project. (drag both Element.framework and Utils.framework into app-project)
- Add both frameworks under Embedded binaries in the app's General settings
Add Hello world code to AppDelegate.applicationDidFinishLaunching method:
StyleManager.addStyle("Button{fill:blue;}")
let btn = Button(100,20)
window.contentView!.addSubview(btn)
func onClick(event:Event){
if(event.type == ButtonEvent.upInside){Swift.print("hello world")}
}
btn.event = onClickAdd import statements to the top of the AppDelegate.swift class:
@testable import Element
@testable import UtilsNote: How to make .framework