mirror of
https://github.com/material-components/material-components-ios.git
synced 2026-02-20 08:27:32 +08:00
[Tutorial] fix duplicate line for constraint on floating action button (#2487)
* [Catalog] Update catalog readme to reflect podspec filename change * [Tutorial] fix duplicate line for constraint on floating action button * [Tutorial] update spacing after colon
This commit is contained in:
parent
b558c28e34
commit
dce3ef55f0
@ -509,8 +509,7 @@ override func viewDidLoad() {
|
||||
|
||||
self.fab.translatesAutoresizingMaskIntoConstraints = NO;
|
||||
[self.fab.trailingAnchor constraintEqualToAnchor:self.view.trailingAnchor constant:-16.0].active = YES;
|
||||
[self.fab.trailingAnchor constraintEqualToAnchor:self.view.trailingAnchor constant: -16.0].active = YES;
|
||||
[self.fab.bottomAnchor constraintEqualToAnchor:self.view.bottomAnchor constant: -16.0].active = YES;
|
||||
[self.fab.bottomAnchor constraintEqualToAnchor:self.view.bottomAnchor constant:-16.0].active = YES;
|
||||
}
|
||||
```
|
||||
<!--</div>-->
|
||||
@ -698,8 +697,7 @@ class ViewController: MDCCollectionViewController {
|
||||
|
||||
self.fab.translatesAutoresizingMaskIntoConstraints = NO;
|
||||
[self.fab.trailingAnchor constraintEqualToAnchor:self.view.trailingAnchor constant:-16.0].active = YES;
|
||||
[self.fab.trailingAnchor constraintEqualToAnchor:self.view.trailingAnchor constant: -16.0].active = YES;
|
||||
[self.fab.bottomAnchor constraintEqualToAnchor:self.view.bottomAnchor constant: -16.0].active = YES;
|
||||
[self.fab.bottomAnchor constraintEqualToAnchor:self.view.bottomAnchor constant:-16.0].active = YES;
|
||||
|
||||
[self.fab setTitle:@"+" forState:UIControlStateNormal];
|
||||
[self.fab setTitle:@"-" forState:UIControlStateSelected];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user