Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
【Swift】Extension 的延伸用法
Search
Richard Kao
November 04, 2016
Technology
0
230
【Swift】Extension 的延伸用法
extension(擴展)除了用在一些我們慣例的用途上,
它其實可以讓我們的 code 更易讀!
#實習 #公司分享會 #Swift
Richard Kao
November 04, 2016
Tweet
Share
More Decks by Richard Kao
See All by Richard Kao
【Swift】Protocol 命名 - Convertible
exp50000
1
160
【Swift】在 Protocol extension 內使用 Selector 發生的案例
exp50000
0
110
【Data】我所碰到的 JSON
exp50000
0
44
【iOS】Google Map SDK V.S. MapKit
exp50000
0
91
【iOS】View Hierarchy
exp50000
0
83
【iOS】Auto Layout
exp50000
0
45
【iOS】Clip Subviews
exp50000
0
63
【Swift】 Tutorial Resource
exp50000
0
38
Other Decks in Technology
See All in Technology
Gradle Build Scanを使ってビルドのことを知ろう potatotips #87
tomorrowkey
2
160
成長をサポートするピープルマネジメントのやり方
sioncojp
9
1.2k
MLOpsの「壁」を乗り越える、LINEヤフーの Data Quality as Code
lycorptech_jp
PRO
8
630
競技としてのKaggle、役に立つKaggle
yu4u
6
2.4k
Python と Snowflake はズッ友だょ!~ Snowflake の Python 関連機能をふりかえる ~
__allllllllez__
2
140
よく聞くけど使ったことないソフトウェアNo.1 KafkaとSnowflake
foursue
4
510
Google Cloud Next '24 Recap(Cloud Run/k8s)
mokocm
0
340
JAWS-UG Bedrock Claude Night
yamahiro
3
730
20分で完全に理解するGrafanaダッシュボード
hamadakoji
5
900
【SORACOM UG 東海】あらゆるモノがつながる社会へ、IoT と SORACOM
soracom
PRO
1
150
VSCodeの拡張機能を作っている話
ebarakazuhiro
1
810
LLM開発・活用の舞台裏@2024.04.25
yushin_n
3
1.3k
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
331
56k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
What’s in a name? Adding method to the madness
productmarketing
PRO
17
2.7k
Become a Pro
speakerdeck
PRO
13
4.6k
Code Review Best Practice
trishagee
56
15k
Typedesign – Prime Four
hannesfritz
36
2.1k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
From Idea to $5000 a Month in 5 Months
shpigford
378
45k
The Art of Programming - Codeland 2020
erikaheidi
43
12k
Testing 201, or: Great Expectations
jmmastey
30
6.4k
Practical Orchestrator
shlominoach
183
9.7k
Building a Scalable Design System with Sketch
lauravandoore
457
32k
Transcript
Extension
硌疻疰ฎݻӞ㮆૪磪 ጱ觊獨牏奾䯤ڜ膐ࣳ獨 Ⴒے碝ۑ胼(functionality)
֕ᴻ種ԏक़牧 ਙ螭ݢ犥 ꔇꔇ
More Readable !!!!
Private Helper Functions 㼟*OUFSOBMGVODUJPO騈1SJWBUFGVODUJPOⴕ
private extension Something { // private ጱ䩚ᥜ㮉 }
Grouping 䪾GVODUJPOⴕⴽ겳䵩ꂂ."3,
extension Somthing { // 战蚤 Style 磪橕 } extension Something
{ // 战蚤 XXX 磪橕 }
Protocol Conformance 欽⢵$POGPSNUP1SPUPDPM䧴僽⢪欽1SPUPDPM酭涸GVODUJPO
extension Somthing: 礓Protocol { // Protocol ጱᥝ穩 }
Models 䪾鎙皿㿂䚍ㄤ⮭㶸㿂䚍ⴕ⢵
Struct 礓Model { // 㱪ਂ痀 } extension 礓Model { //
懯ᓒ痀 }
Others