Skip to content

Commit a1a9748

Browse files
author
Ian Gordon
committed
traviskaufman@ found an erroneous setNeedsLayout in Switch's sample code.
This CL removes it. Reviewers: traviskaufman, #material_components_ios_owners, featherless Reviewed By: #material_components_ios_owners, featherless Projects: #material_components_ios Differential Revision: http://codereview.cc/D91
1 parent 3a50161 commit a1a9748

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

components/Switch/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ and are not resizable.
2525
forControlEvents:UIControlEventValueChanged];
2626
_switch.on = YES; // No UIControlEventValueChanged sent by this property or [setOn:animated:].
2727
_switch.offThumbTintColor = [UIColor redColor]; // Make the thumb red if it’s turned off.
28-
29-
[self setNeedsLayout]; // Request that we recalculate layout during the next cycle.
3028
}
3129

3230
```

0 commit comments

Comments
 (0)