Skip to content

Commit

Permalink
Update example with requiresConstraintBasedLayout.
Browse files Browse the repository at this point in the history
It's now a property, and so needs to be overriden as such.
  • Loading branch information
Erich Grunewald committed Feb 9, 2017
1 parent ff4cf78 commit aafb4e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ If you override `updateConstraints` in a custom view, you should explicitly stat

Swift:
```swift
override class func requiresConstraintBasedLayout() -> Bool {
override class var requiresConstraintBasedLayout: Bool {
return true
}
```
Expand Down

0 comments on commit aafb4e3

Please sign in to comment.