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
260
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
【Swift】Extension 的延伸用法
extension(擴展)除了用在一些我們慣例的用途上,
它其實可以讓我們的 code 更易讀!
#實習 #公司分享會 #Swift
Richard Kao
November 04, 2016
More Decks by Richard Kao
See All by Richard Kao
【Swift】Protocol 命名 - Convertible
exp50000
1
180
【Swift】在 Protocol extension 內使用 Selector 發生的案例
exp50000
0
120
【Data】我所碰到的 JSON
exp50000
0
56
【iOS】Google Map SDK V.S. MapKit
exp50000
0
100
【iOS】View Hierarchy
exp50000
0
120
【iOS】Auto Layout
exp50000
0
57
【iOS】Clip Subviews
exp50000
0
74
【Swift】 Tutorial Resource
exp50000
0
64
Other Decks in Technology
See All in Technology
AI時代の開発生産性は、個人技からチーム設計へ
moongift
PRO
4
2.4k
副作用のある Lambda でも Lambda Power Tuning は使えるのか / lambda-power-tuning-side-effects
koukihosaka
1
110
シンガポールで登壇してきます
yama3133
0
250
最適な自走を最小限の支援で — M&Aで拡大する組織で少人数SREが挑んだ1年 / SRE NEXT 2026
genda
0
1.5k
ゴールデンパスは敷いただけでは道にならない ─ 企画部門のエンジニアが技術標準を事業価値に変えるまで
mhrtech
1
230
しくみを学んで使いこなそう GitHub Copilot app
torumakabe
2
290
Control Planeで育てるBtoB SaaSの認証基盤 - SRE NEXT 2026
pokohide
1
2.7k
「AIに依存している」と 「AIを使いこなしている」の違い
k8yasuma
0
120
Alphaモジュール使っていいのかい!?いけないのかい!?どっちなんだいっ!?
watany
1
290
ガバナンスの「ちょうどいい落とし所」を探れ!開発スピードを妨げない運用判断の勘所 / SRE NEXT 2026
genda
1
260
AI Coding Agent時代のcdk-nagガードレール 〜組織ルールを強制CIで守り抜く設計の挑戦〜
mhrtech
3
430
AIコード生成×サプライチェーン攻撃 — PHPが直面する“二重の信頼問題
shinyasaita
0
220
Featured
See All Featured
Faster Mobile Websites
deanohume
310
32k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
150
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
350
A Tale of Four Properties
chriscoyier
163
24k
Fireside Chat
paigeccino
42
4k
Leo the Paperboy
mayatellez
8
1.9k
The Spectacular Lies of Maps
axbom
PRO
1
860
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
72
40k
Being A Developer After 40
akosma
91
590k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
390
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.5k
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