Skip to content

Commit dea921b

Browse files
SahilSainiYMLmpospese
authored andcommitted
[UPDATE] updated according to review comment white space ahead of code
1 parent 59331ee commit dea921b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ Another flavor creates constraints using anchors just like the anchor api’s fi
4545

4646
```swift
4747
// constrain a button's width to 100
48-
let button = UIButton()
49-
addSubview(button)
50-
button.constrain(.widthAnchor, constant: 100)
48+
let button = UIButton()
49+
addSubview(button)
50+
button.constrain(.widthAnchor, constant: 100)
5151

5252
// constrain view to superview
53-
let container = UIView()
54-
addSubview(container)
55-
container.constrain(.leadingAnchor, to: leadingAnchor)
56-
container.constrain(.trailingAnchor, to: trailingAnchor)
57-
container.constrain(.topAnchor, to: topAnchor)
58-
container.constrain(.bottomAnchor, to: bottomAnchor)
53+
let container = UIView()
54+
addSubview(container)
55+
container.constrain(.leadingAnchor, to: leadingAnchor)
56+
container.constrain(.trailingAnchor, to: trailingAnchor)
57+
container.constrain(.topAnchor, to: topAnchor)
58+
container.constrain(.bottomAnchor, to: bottomAnchor)
5959
```
6060

6161
There are overrides to handle the common use case of placing one view below another or to the trailing side of another:
@@ -199,7 +199,7 @@ Want to have a scrollview that avoids the keyboard, but you can’t use `FormVie
199199
scrollView.registerKeyboardNotifications()
200200
```
201201
<aside>
202-
💡 Almost every full-screen view in your app that contains any text should be a scroll view because of the vagaries of localization, Dynamic Type, potentially small screen sizes, and landscape mode support.
202+
💡 Almost every full-screen view in your app that contains any text should be a vertical scroll view because of the vagaries of localization, Dynamic Type, potentially small screen sizes, and landscape mode support.
203203
</aside>
204204

205205
Installation

0 commit comments

Comments
 (0)