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
720
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
81
AI時代でも変わらない技術コミュニティの力 ~10年続く"ゆるい"つながりが生み出す価値~
jollyjoester
0
39
AIコードアシスタントとiOS開発
jollyjoester
1
390
市民のためのセキュリティ講座
jollyjoester
0
120
コミュニティMTG in WWDC24
jollyjoester
0
400
BengaluruでLTしてきた
jollyjoester
0
420
try! Swift Tokyo 2024
jollyjoester
0
430
エンジニアが直接会う場の価値について
jollyjoester
8
4.8k
Other Decks in Education
See All in Education
Tema 1. El relieve de España: Formación y características
juanmartin2026
0
39k
2026年度秋学期 統計学 第2回 統計資料の収集と読み方 (2026. 10. 6)
akiraasano
PRO
0
270
子どものためのプログラミング道場『CoderDojo』〜法人提携例〜 / Partnership with CoderDojo Japan
coderdojojapan
PRO
4
19k
An Experiment in "Cross-Cultural Exchange" as a Method for Content Creation
naoji_taniguchi_ksk_0827
0
250
AIがコードを書く時代に、何を教えるのか / What Should We Teach in the Age of AI-Generated Code?
ichiroc
1
610
Science Tokyo University for International Research Excellence scheme_April 2026
sciencetokyo
PRO
0
480
Geografía y Fútbol: Chattanooga Geografía del Búnker de La Roja.
juanmartin2026
1
12k
人間関係に取り組む、その時に / step away to make space
spring_aki
0
130
Dronegeografía innovación didáctica y fotogrametría 3D para la enseñanza de la geografía local y la ciudadaniía activa
juanmartin2026
0
31k
Sekolah Sabat - Triwulan 4 2026 - Pelajaran 3
hiola
0
6.6k
One Year of Learning English with AI @エンジニア英語キャリア Meetup #3
kekekenta
0
290
25-26 CBT Library top items
cbtlibrary
0
350
Featured
See All Featured
The Curious Case for Waylosing
cassininazir
1
570
The agentic SEO stack - context over prompts
schlessera
0
970
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
How to Think Like a Performance Engineer
csswizardry
28
2.9k
New Earth Scene 8
popppiees
4
2.7k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
550
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
The Pragmatic Product Professional
lauravandoore
37
7.5k
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
870
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!