Skip to content

Commit 289c26c

Browse files
committed
Added screenshot and how to fix default spacing
1 parent 9e814aa commit 289c26c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ If you need to expose a Swift type for use within Objective-C you can provide a
110110
## Spacing
111111

112112
* Indent using 2 spaces rather than tabs to conserve space and help prevent line wrapping. Be sure to set this preference in Xcode.
113+
![Screenshot of indentation preferences xcode](https://www.evernote.com/shard/s128/sh/eff097d4-9a88-4b00-83bd-6fd5b45acdc0/0100c96e855f4cc890283a38ca9fa166/deep/0/Screen-Shot-2014-12-05-at-2.02.29-PM.png)
114+
The code that Xcode generates, when you create a new project or a new file, by default uses 4-space indents. You can fix this by selecting all (⌘A), copying (⌘C), pasting (⌘V). Then, all the generated code will use the correct 2-space indents.
113115
* Method braces and other braces (`if`/`else`/`switch`/`while` etc.) always open on the same line as the statement but close on a new line.
114116

115117
**Preferred:**

0 commit comments

Comments
 (0)