You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classExample1ViewController:UIViewController{letroot=UIView()overridefunc viewDidLoad(){
super.viewDidLoad()
view.addSubview(root)
root.flex
.direction(.row).wrap(.wrap).define{ flex in
for _ in 0...7{
flex.addItem().justifyContent(.center).alignItems(.center).width(25%).aspectRatio(1).backgroundColor(.green).border(1,.red).define{ flex in
flex.addItem().width(60%).aspectRatio(1).backgroundColor(.blue)}}}}overridefunc viewDidLayoutSubviews(){
super.viewDidLayoutSubviews()
root.pin.all(view.pin.safeArea)
root.flex.layout(mode:.adjustHeight)}}
in 1.3.33:
in 2.0.07:
I'm not sure if this is Yoga‘s bug.
The text was updated successfully, but these errors were encountered:
The code is simple:
in 1.3.33:
in 2.0.07:
I'm not sure if this is Yoga‘s bug.
The text was updated successfully, but these errors were encountered: