Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Swiftのポイントかいつまみ!
Search
jollyjoester
August 08, 2015
Education
730
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Swiftのポイントかいつまみ!
個人的に大事だと思うSwiftのポイントかいつまみます。
jollyjoester
August 08, 2015
More Decks by jollyjoester
See All by jollyjoester
Swift愛好会100回記念 第1回を振り返る
jollyjoester
0
150
印西市創業実践プログラム2026 【AI活用講座】
jollyjoester
0
94
AI時代でも変わらない技術コミュニティの力 ~10年続く"ゆるい"つながりが生み出す価値~
jollyjoester
0
43
AIコードアシスタントとiOS開発
jollyjoester
1
400
市民のためのセキュリティ講座
jollyjoester
0
130
コミュニティMTG in WWDC24
jollyjoester
0
410
BengaluruでLTしてきた
jollyjoester
0
420
try! Swift Tokyo 2024
jollyjoester
0
450
エンジニアが直接会う場の価値について
jollyjoester
8
4.8k
Other Decks in Education
See All in Education
【ainiチャット】2段階認証設定方法
ainischool
0
150
Image processing with PDEs
hachama
0
480
AIができることを人はなぜ学ぶのか ― 専門性を育て、AIと学び続ける大学へ
gmoriki
0
190
Longitudinal research
aisw77
0
420
Pharmacognosy_Chapter_-1.pdf , Definition, history & scope of pharmacognosy
ak679839
1
170
Sekolah Sabat - Triwulan 4 2026 - Pelajaran 3
hiola
0
7.2k
2026年度秋学期 統計学 第2回 統計資料の収集と読み方 (2026. 10. 6)
akiraasano
PRO
0
310
1104
cbtlibrary
0
120
[2026後期火5] 論理学(京都大学文学部 後期 第1回)「名前はあるのに、誰なのかわからない」
yatabe
0
180
Introduction to Primary and Secondary Metabolites their Metabolic Pathways
drpoonamkc
0
180
Sekolah Sabat - Triwulan 4 2026 - Pelajaran 2
hiola
0
11k
LP2627
cbtlibrary
0
190
Featured
See All Featured
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
350
Product Roadmaps are Hard
iamctodd
55
13k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Technical Leadership for Architectural Decision Making
baasie
3
640
Accessibility Awareness
sabderemane
1
290
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
520
Building Flexible Design Systems
yeseniaperezcruz
330
41k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
43k
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
890
Six Lessons from altMBA
skipperchong
29
4.6k
Transcript
Swift2.0͕ग़Δલʹ SwiftͷϙΠϯτ͔͍ͭ·Έʂ SwiftϏΪφʔζษڧձ ୈ̕ճ 2015/08/08 jollyjoester
• ࣣౡҒ೭ʢͳͳ͠·ͻͰΏ͖ʣ • Repro.Inc / ྑΤϯδχΞ • iPhone / Android
• Java -> Objective-C -> Swift • ੜ·Εਆಸɺݩઍ༿ɺ ࣗࢁޱ
https://repro.io/
Repro
ࣥචʹࢀՃ͠·ͨ͠ʂ • 2015/04/10ɹٕज़ධ͔ࣾΒൃച ೦ͳ͕ΒSwift1.1࣌ Ͱਖ਼ޡදͱαϯϓϧϓϩάϥϜSwift1.2ରԠ
Introduction • ݸਓతʹେࣄͩͱࢥ͏SwiftͷϙΠϯτ͔͍ͭ·Έ·͢ɻ
TɾOɾC • Constants and Variables • Struct and Class •
Optionals • Type Constraint • ͓·͚ : Tuples
Constants and Variables • let : immutableʢఆɺ࠶ೖෆՄʣ • var :
mutableʢมɺ࠶ೖՄʣ let : Կ͕خ͍͠ʁ
Constants and Variables let : خ͍͠ͱ͜Ζ • ແବʹՄมͳ෦Λগͳ͘͢Δ͜ͱ͕Ͱ͖Δʂ ʢແବʹՄมͳ෦͕͋Δͱෳࡶ͕͞૿ͯ͠ෆ۩߹ͷݩʣ ->جຊletͰએݴɻ࠶ೖͷඞཁੑ͕ग़͖ͯͨΒvarʹɻ
ҙ • letͰએݴͨ͠มʹΦϒδΣΫτ͕ೖ͞Ε͍ͯΔ߹ɺΦϒδΣ ΫτͷϓϩύςΟมߋͰ͖ͯ͠·͏Αɻ
Struct and Class • struct : ͠ɺclass : ࢀর͠ •
structܧঝෆՄ struct : Կ͕خ͍͠ʁ
Struct and Class struct : خ͍͠ͱ͜Ζ • ແବʹՄมͳ෦Λগͳ͘͢Δ͜ͱ͕Ͱ͖Δʂ ʢແବʹՄมͳ෦͕͋Δͱෳࡶ͕͞૿ͯ͠ෆ۩߹ͷݩʣ ->جຊstructͰɻঢ়ଶΛ࣋ͨ͟ΔΛಘͳ͔ͬͨΓܧঝ͕ඞཁͳ߹
classͰɻʢܧঝprotocolΛ͑༻Մೳͳ߹͋ΔΑʣ ҙ • ͠ͳͷͰͰ͔͍σʔλͷίϐʔཁҙ͔ʢ࠷దԽ͞ΕͯΔͱ ฉ͘ʣ
Optionals • There is a value, and it equals x
or • There isn’t value at all Optionals : Կ͕خ͍͠ʁ
Optionals Optionals : خ͍͠ͱ͜Ζ • ແବʹՄมͳ෦Λ(ry ->جຊnot OptionalͰɻOptionalͰͳ͚Εͬͯ͜͜nil ೖΔ͔ɺɺɺΈ͍ͨͳ͍ٙෆཁ ҙ
• Optionalͷཚ༻͢Δͱ
Type Constraint ܕ੍͕ڧ͍->҉ͷܕมݪଇͰ͖ͳ͍ʂ Type Constraint: خ͍͠ͱ͜Ζ • ແବʹՄม(ry
͓·͚ɿTuples ෳͷΛͻͱ·ͱΊʹͰ͖Δ ArrayDictionaryͱͷҧ͍ • ҟͳΔܕΛೖΕΒΕΔ • ϧʔϓॲཧ͕Ͱ͖ͳ͍ • ͷՃআ͕Ͱ͖ͳ͍
͓·͚ɿTuples ͳΜͰTupleʁ • ࣮Swiftͷશ෦Tuple • SwiftͷؔҾฦΓෳऔΕΔ->࣮྆ํ Tupleͳ͚ͩ
Have a nice Dev!