Commit Graph

42 Commits

Author SHA1 Message Date
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
Assaf Gelber
c9400c2a7d Change swift class name to Square 2014-08-28 14:00:25 +03:00
Janne R.
54bd312f8d Use preferred shorthand syntax for dictionary type 2014-08-26 20:48:35 +03:00
C. Bess
b50d4443cd - add more examples; add book link
- add link to official Swift book from Apple
- add examples of access control and structures
- update protocols
2014-08-24 18:33:16 -05:00
C. Bess
2a5a4ebf64 - add landmark notes 2014-08-24 14:37:09 -05:00
C. Bess
6b34ef65a3 - more examples
- add custom operator example
2014-08-24 00:48:54 -05:00
C. Bess
328a4f1bab - add more examples; update examples
- now runs in the Xcode 6 b6 playground
- add MARK sections
2014-08-23 22:48:10 -05:00
Umberto Raimondi
ba855b1664 Update swift to beta3
Updated to beta3, new array declaration style,".." and a few other modifications.
2014-07-16 12:20:57 +02:00
Xavier Yao
e07f88cb4d Tiny symbol missing fixed. 2014-06-05 22:49:42 +08:00
Grant Timmerman
76f4c1b3b6 Formatted the document according to the guidelines 2014-06-04 13:22:01 -07:00
Grant Timmerman
0d984535bd Added swift docs 2014-06-04 00:50:17 -07:00