You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: swift/README.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ class Component {
93
93
}
94
94
```
95
95
96
-
Use calculated properies instead of getter and setter functions:
96
+
Use computed properties instead of getter and setter functions:
97
97
98
98
```swift
99
99
classComponent {
@@ -144,7 +144,7 @@ Try to wrap comments to 100 characters, though.
144
144
For Dictionary and Array literals, use python-style indentation:
145
145
146
146
```swift
147
-
let nameMap: [String: String]= [
147
+
let nameMap = [
148
148
"George":"Jetson",
149
149
"Astro":"Boy",
150
150
// etc.
@@ -217,7 +217,7 @@ Avoid this design pattern.
217
217
218
218
Use `let` unless the variable will be mutated.
219
219
220
-
delegates
220
+
Delegates
221
221
=========
222
222
223
223
Use the `weak` modifier for `delegate` properties.
@@ -354,12 +354,12 @@ Group helper functions into a `struct` rather than a `class`.
354
354
Extensions
355
355
==========
356
356
357
-
Create `extension`s to classes when you will use those functions in alot of places. Otherwise use [Helper functions](#Helper functions).
357
+
Create `extension`s to classes when you will use those functions in a lot of places. Otherwise use [Helper functions](#Helper functions).
358
358
359
359
Layout
360
360
======
361
361
362
-
Prefer Autolayout over springs+struts (autoresizing mask). Autolayout automatically handles many things that springs+struts doesn't (status bar hiding/showing, device rotation)
362
+
Prefer Autolayout over springs+struts (autoresizing mask). Autolayout automatically handles many things that springs+struts doesn't (status bar hiding/showing, device rotation)
0 commit comments