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
野瀬田 裕樹
May 29, 2025
Technology
450
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Swiftは最高だよの話
Swift宣伝資料です
野瀬田 裕樹
May 29, 2025
Transcript
86 slides
4XJGU࠷ߴͩΑͷ ΞϓϦ։ൃࣨɹాɹ༟थ
Ͱ
ͳΔ͘ଟ͘
4XJGUͷ
ྑ͍ͱ͜ΖΛ
͑·͢ʂ
ྫ֎ॲཧ͕࠷ߴ
4XJGUݕࠪྫ֎Λ࠾༻
4XJGUͷྫ֎ͷجຊϧʔϧ
// ϧʔϧ1ɿΤϥʔͷൃੜՄೳੑ͕͋Δؔఆٛඞͣthrows͕ඞཁ func main() throws {
// ϧʔϧ2ɿthrowsͷؔݺͼग़͠ඞͣtry͕ඞཁ try sample()
// ϧʔϧ3ɿthrowsؔthrows͔ؔdo-catchͷΈݺग़Մ func main1() throws { try sample() } func
main2() { do { try sample() } catch {} }
͜Ε͚ͩ
Ͱੌ͘ྑ͍
3FTVMUΑΓྑ͍ͷʁ
ྑ͍Ͱ͢
ΤϥʔͱฦΓͷϖΞΑΓʁ
ྑ͍Ͱ͢
ৄࡉলུ
ܰ͘৮ΕΔͱ
ΤϥʔϋϯυϦϯά͕ڧ੍
ΤϥʔϋϯυϦϯά͕ڧ੍ ݕࠪྫ֎ͳͷͰ
ΤϥʔͷิՕॴ͕໌֬
ΤϥʔͷิՕॴ͕໌֬ USZඞਢͳͷͰ
ෳͷࣜͷ߹͕؆୯
ෳͷࣜͷ߹͕؆୯ USZB USZC USZD CͱDͷUSZলུՄ
Τϥʔͷແࢹ͕؆୯
Τϥʔͷແࢹ͕؆୯ @USZ B
ͳͲ
৭Μͳར͕͋ΔΑ
ˣͷهࣄ͕ৄ͍͠Α 4XJGUͷΤϥʔϋϯυϦϯά ͳͥ࠷ઌͳͷ͔
ܕத৺Ͱ࠷ߴ
$MBTTͬͯਏ͍ΑͶ
Մมঢ়ଶ͕؆୯ʹڞ༗͞ΕΔ
class A { var x: Int = 0 } var
a1 = A() var a2 = a1 a1.x = 1 print(a2.x) // ग़ྗɿ1(a1ͱa2ͰՄมͳঢ়ଶ͕ڞ༗)
4XJGUͳΒ͏҆৺
ޚతίϐʔʁ
ΠϛϡʔλϒϧΫϥεʁ
͍Γ·ͤΜ
struct A { var x: Int = 0 } var
a1 = A() var a2 = a1 a1.x = 1 print(a2.x) // ग़ྗɿ0(a1ͱa2Ͱڞ༗͞Εͳ͍)
ྑ͍ײ͡Ͱ͢Ͷ
ܕ
ΠϛϡʔλϒϧΫϥεͱಉ͡ ҆શੑ
ϛϡʔλϒϧΫϥεͱಉ͡ มߋ༰қੑ
4XJGUͳΒ
ίϨΫγϣϯܕ
ܕΛѻ͏๛ͳݴޠ༷
࠷ߴ
ˣͷهࣄ͕ৄ͍͠Α )FBSUPG4XJGU
ඇಉظॲཧ͕࠷ߴ
BTZODBXBJU
"TZOD4USFBN
શ෦ඪ४Ͱ͋ΔΑ
ඇಉظॲཧͷେ
σʔλڝ߹
҆৺ͯ͠
҆શ͡Όͳ͍ίʔυ
4XJGUͳΒ
ίϯύΠϧΤϥʔʹͳΔΑ
4FOEBCMF͋Δ͠
"DUPSΊͬͪΌศརͩΑ
๛ͳݴޠػೳ
UZQFEUIPSXTʁ
͋Γ·͢
ॴ༗ݖʁआ༻ʁ
͋Γ·͢
/PODPQZBCMFʁ
͋Γ·͢
ͳΜͰେମ͋ΔΑʂ
ϚϧνϓϥοτϑΥʔϜ
J04͔͠Ͱ͖ͳ͍ʁ
ͦΜͳ͜ͱ͋Γ·ͤΜ
αʔόʔ ʢ࣮গͳ͍͚Ͳʣ
8FC ʢ੩తαΠτͳΒͶʜʣ
"OESPJE ʢ4LJQͷࠓޙʹظʣ
ΈࠐΈ ʢ&NCFEEFE4XJGU͋ΔΑʣ
ͪΖΜ
7JTJPO04
.BD04
ͳΜͰͰ͖ΔΑ
·ͱΊ
4XJGUJT࠷ߴ w ྫ֎ॲཧ͕࠷ߴʢΤϥʔϋϯυϦϯάڧ੍ɺ໌֬ͳهड़ɺFUDʣ w ܕத৺͕࠷ߴʢ҆શੑͱมߋ༰қੑͷཱ྆ʣ w ඇಉظॲཧ͕࠷ߴʢσʔλڝ߹ճආɺهड़͕༰қɺFUDʣ w ๛ͳݴޠػೳ͕࠷ߴʢੑೳٻͰ͖Δ҆͠શੑ͕ߴ͍ɺFUDʣ w
ϚϧνϓϥοτϑΥʔϜʢαʔόʔ͔Β7JTJPO04·Ͱશ෦Ͱ͖Δʣ
ଞʹ͖ͳͱ͜Ζ͋Δ
ଞͷ͖ͳͱ͜Ζ w ύοέʔδཧ͕ݴޠʹඪ४Ͱ͍ͯΔʢผͷͭΛೖΕΔඞཁ͕ ͳ͍ʣ w TPNFBOZͱ͔Ωʔϫʔυબఆ͕ྑͯ͘ಡΈ͍͢ʢݸਓతݟղʣ w ຊͷ4XJGUJ04ίϛϡχςΟ͕׆ൃͰྑ͍ਓɾڧ͍ਓଟ͍ w 4XJGUࣗମΦʔϓϯιʔεͳͷͰਐԽͷ༷ࢠ͕ݟΕͯظ͕େ͖͍
͋ͳͨ໌͔Β 4XJGUΛ ͬͯΈΑ͏
͓ΘΓ
More Decks by 野瀬田 裕樹
See All by 野瀬田 裕樹
速習iPhone Duo対応
yuukiw00w
3
1k
App Storeの外へ──日本のiOSサイドローディング入門 for iOSDC Japan 2026
yuukiw00w
0
440
ネイティブiOSアプリだからできること
yuukiw00w
0
60
野瀬田とSwift愛好会
yuukiw00w
0
48
uhooiさん発ランダムタスクにチャレンジしよう!
yuukiw00w
1
92
ViewModelって200種類あんねん
yuukiw00w
0
70
Validate your App Intents adoption with AppIntentsTesting
yuukiw00w
0
67
App Intentsを実装しよう
yuukiw00w
0
71
iOS26時代の新規アプリ開発
yuukiw00w
0
290
Other Decks in Technology
See All in Technology
20261113_JAWS_Osaka
takuyay0ne
0
540
OpenTelemetryで変わった 新時代のCloudWatchメトリクス監視
tsukuboshi
0
330
WasmをRustにする技術
sansantech
PRO
0
100
これからのデータエンジニアの役割について考える / Rethinking the Role of Data Engineers in the AI Era
okiyuki99
0
510
Linuxネットワークスタック進化の軌跡: 過去10年の歩みと最新トレンド
orimanabu
4
730
Gov-JAWS#9 統合監視機能のマネージドサービス化+AIによる障害時自動調査
fj_yoshimura_kosuke
0
170
LLM 基盤と kagent v0 を全部 k8s に入れてみた / Deploy both LLM and kagent v0 in k8s
kota2and3kan
0
230
閉域網でのAPI公開の選択肢全部比較!
takano0131
2
340
BALLAS Technology Deck
ballas_inc
0
690
アラートを見直していたら営業組織への理解にちょっとだけ繋がった話
z63d
1
210
Community Over Code Glasgow 2026 + Lakehouse Day recap
lycorptech_jp
PRO
1
120
狙われているAPIの脆弱性!今こそ手をつけるべき根本的な対策とは?
nagix
0
140
Featured
See All Featured
How Software Deployment tools have changed in the past 20 years
geshan
3
35k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
590
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
GitHub's CSS Performance
jonrohan
1033
470k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
380
Producing Creativity
orderedlist
PRO
348
41k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
980
Making Projects Easy
brettharned
120
6.9k
The browser strikes back
jonoalderson
0
1.9k
sira's awesome portfolio website redesign presentation
elsirapls
0
510