BREAKING CHANGE: rename applyLayout to applyLayoutPreservingOrigin.
Summary: Will update on Monday Reviewed By: emilsjolander Differential Revision: D4545786 fbshipit-source-id: f8189d82f1c64cd1eac532fd2dfaa9aea35d6004
This commit is contained in:
committed by
Facebook Github Bot
parent
063f65d065
commit
4f6924a0c1
@@ -36,6 +36,6 @@ class SwiftViewController: UIViewController {
|
||||
child2.addSubview(child3)
|
||||
root.addSubview(child1)
|
||||
root.addSubview(child2)
|
||||
root.yoga.applyLayout()
|
||||
root.yoga.applyLayout(preservingOrigin: false)
|
||||
}
|
||||
}
|
||||
|
@@ -10,10 +10,6 @@
|
||||
|
||||
#import <YogaKit/UIView+Yoga.h>
|
||||
|
||||
@interface ViewController ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation ViewController
|
||||
|
||||
- (void)viewDidLoad
|
||||
@@ -53,7 +49,7 @@
|
||||
[child2 addSubview:child3];
|
||||
[root addSubview:child1];
|
||||
[root addSubview:child2];
|
||||
[root.yoga applyLayout];
|
||||
[root.yoga applyLayoutPreservingOrigin:NO];
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user