Chen Yufei
3dd9becb0f
[swift/en] fix typo about break statement in loop ( #4258 )
...
Just a small fix.
2021-10-30 11:26:41 +02:00
Борис Верховский
a502f8d723
Rename OS X to macOS ( #4166 )
2021-05-25 13:42:50 +02:00
mofarajmandi
8a54e8b738
Add a short note about final
keyword
...
It's a general good practice to mark classes as `final` unless they are designed to be subclassed.
2020-10-17 21:13:50 -03:00
Divay Prakash
16e416ab7f
Merge pull request #3788 from bantic/patch-1
...
[swift/en] Return value of `findIndex` is `Optional<Int>`
2020-01-24 20:32:12 +05:30
Cory Forsyth
88795664c5
Return value of findIndex
is Optional<Int>
2019-12-02 16:57:13 -05:00
hamidra
9c18774c34
add downcast to the tutorial
2019-11-01 20:49:53 -07:00
Hugo Locurcio
db010c8a72
[swift/en] Fix typos
2019-10-22 09:10:07 +02:00
Sam
fb579b88f4
[Swift/en] Fix quoted multi-line string
...
The renderer on the website doesn't recognize Swift multi-line strings, so a bunch of the file was treated as a string literal. This adds another " in the multi-line string to balance it out
2019-08-03 10:38:55 -04:00
Sam
84cb029617
[Swift/en] Update to Swift 5 and include omitted examples ( #3553 )
...
* Update to Swift 5 and include omitted examples
* Reformat lines to ~80 characters
* Fix mistype and add optional chaining
2019-08-03 16:43:22 +05:30
Joseph G
175a78ec33
Removed deprecated reference
2018-10-11 14:21:54 -07:00
Damian Rzeszot
e8ee66c854
swift | fix style guidelines
2017-10-09 08:04:01 +02:00
Damian Rzeszot
9a9e52b54b
swift | fix style guidelines
2017-10-09 08:04:01 +02:00
Damian Rzeszot
d01e5242e1
swift | fix style guidelines
2017-10-09 08:04:01 +02:00
Damian Rzeszot
62d4b1483b
swift | fix style guidelines
2017-10-09 08:04:01 +02:00
HairyFotr
985d23a52b
Fix a bunch of typos
2017-08-23 10:14:39 +02:00
Kyle Rokita
a19efad7fc
Added nil-coalescing operator
2016-11-11 16:12:13 -08:00
Alexey Nazaroff
b738126423
Updated code according Swift v.3 ( #2427 )
...
* Updated code according Swift v.3
* [swift] Removed "where" in conditional statements
2016-10-08 11:59:20 +02:00
Evan
9234c9fea4
Update Swift pre-decrement syntax to match v3.0 ( #2395 )
2016-10-01 22:33:04 +02:00
gprasant
48b2244ac3
Add documentation comment for If let
2016-02-19 08:13:46 -08:00
Paul Brewczynski
107356e627
[Swift/en] Deleted semicolon to be consistent - Small Fix
...
this line
let weak = "keyword"; let override = "another keyword" // statements can be separated by a semi-colon
show off semicolon use. But after that semicolon is not used, so I removed inconsistency.
2016-01-16 19:30:25 +01:00
Paul Brewczynski
1c1944acb4
Updated comment on documentation of Swift functions
...
Documentation syntax is no longer reStructuredText,
It's "Swift-flavored version of Markdown"
http://nshipster.com/swift-documentation/
2016-01-14 19:11:45 +01:00
Paul Brewczynski
8ecf73a086
Updated documentation syntax
...
As Xcode switched to Markdown syntax, I've updated it.
2016-01-13 10:01:46 +01:00
Adam Bard
c0ac40dff2
Merge pull request #2021 from bobrippling/master
...
[swift/en] Correct "Casting" mention in swift markdown
2015-11-30 22:23:31 +07:00
C. Bess
50fca171c5
- added error handling example
...
- add do-try-catch examples
- add throw example
2015-11-23 13:12:49 -06:00
Rob Pilling
312941c5e0
Correct "Casting" mention in swift markdown
...
'T()' is initialisation/creation, 'x as T' is casting
2015-11-13 14:56:37 +00:00
C. Bess
99b2c3db37
- add where and guard examples
2015-11-10 17:03:40 -06:00
C. Bess
618f8f5bad
- update Swift examples
...
- update to upgrade to Swift 2.1
- code cleanup
2015-11-09 18:09:48 -06:00
C. Bess
df0992d72c
Merge remote-tracking branch 'adambard/master'
...
Conflicts:
swift.html.markdown
2015-11-09 17:55:53 -06:00
C. Bess
afc5ea1465
- update examples
...
- add examples for labeled tuples and computed properties
2015-11-09 17:54:05 -06:00
Fernando Valverde Arredondo
dbe6184519
Update contributor list
2015-11-01 01:48:44 +01:00
Fernando Valverde
9530122a1c
Include MARK style and two collection declarations
...
Added MARK with separator and a couple of mutable explicit declarations of empty Array/Dictionary
2015-10-30 22:43:44 +01:00
Levi Bostian
10ac3c9eb7
Merge pull request #1381 from cwalk/swift-2
...
[swift/en] Added clearer description of Optionals and Unwrapping.
2015-10-09 10:08:24 -05:00
Clayton Walker
b4860de42f
Suggested changes
2015-10-08 23:27:19 -04:00
Valentine Silvansky
707c8db171
Add generics operator in Swift
2015-10-08 10:00:13 +03:00
Gabriel Halley
960ee4a185
removing whitespace all over
2015-10-07 23:11:24 -04:00
Clayton Walker
ad16a31c07
Added clearer description of Optionals and Unwrapping. Minor typo changes as well.
2015-10-06 23:36:32 -04:00
Clayton Walker
5dac348b72
Forgot to add myself as a contributor from swift-1 pull request.
2015-10-06 23:00:11 -04:00
Clayton Walker
d540d1c67b
Original link directs to page that can't be found. Changed to represent new location of the Apple Developer tutorial on swift.
2015-10-06 22:25:38 -04:00
Anthony Nguyen
d17d41a02b
Println deprecated in Swift 2, added name
2015-08-03 23:11:44 -04:00
Anthony Nguyen
775ac3b859
Updated print description on Swift
2015-08-03 23:10:10 -04:00
Anthony Nguyen
c4558c47ea
Println deprecated in Swift 2
2015-08-03 23:05:22 -04:00
Joey Huang
b178ac3077
add optional init and enum with associated values
2015-02-28 19:28:34 +08:00
TheDmitry
f74fd2657a
[swift/en,cn,ru]Updating the getting started guide weblink.
2015-01-28 11:24:31 +03:00
Keito Uchiyama
7a55b4a9b1
Explain Optional Chaining
...
Without going into too much detail, mention optional chaining so it's
not confusing that there is a question mark suffix (it's not currently
mentioned anywhere on the page).
2015-01-20 14:55:07 -08:00
yelite
3fa59915d0
Update swift.html.markdown
2015-01-18 16:06:48 +08:00
C. Bess
3a7e00127f
- update examples, update comments
...
- add another Switch example
- add more complex func example
- fix playground error
- add another casting example
2014-12-13 20:01:08 -06:00
C. Bess
679d7098f2
- update examples
...
- further explain Optional types
- add build config example
- explain array/dictionary mutability
- expand tuple example
2014-10-17 21:22:28 -05:00
C. Bess
923a8ed99b
- mo betta examples
...
- add `inout` example
- better `optional` example
- Playground issue has been resolved, uncommented `protocol` example
2014-10-04 12:08:23 -05:00
Adam
eab554a7a7
Review docs for added rouge lexers and update those with new highlighters
2014-09-08 13:08:28 +02:00
C. Bess
313c0daf05
- fix merge swift conflict
...
- Merge master
2014-09-02 18:52:04 -05:00