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
IBDesignable x PaintCode
Search
86
October 13, 2015
Technology
1
2k
IBDesignable x PaintCode
sample code:
https://github.com/86/StarKit
86
October 13, 2015
Tweet
Share
Other Decks in Technology
See All in Technology
新規事業におけるAIリサーチの活用例
ranxxx
0
160
CSPヘッダー導入で実現するWebサイトの多層防御:今すぐ試せる設定例と運用知見
llamakko
1
230
PdM業務における使い分け
shinshiro
0
600
メモ整理が苦手な者による頑張らないObsidian活用術
optim
0
130
データエンジニアリング 4年前と変わったこと、 4年前と変わらないこと
tanakarian
2
380
Expertise as a Service via MCP
yodakeisuke
1
150
エンジニアリングマネージャー“お悩み相談”パネルセッション
ar_tama
1
680
少人数でも回る! DevinとPlaybookで支える運用改善
ishikawa_pro
3
930
そもそも AWS FIS について。なぜ今 FIS のハンズオンなのか?などなど
kazzpapa3
2
120
Building GoReleaser - from shell script to paid product
caarlos0
0
280
PHPでResult型やってみよう
higaki_program
0
190
TypeScript 上達の道
ysknsid25
19
3.7k
Featured
See All Featured
Bash Introduction
62gerente
613
210k
Faster Mobile Websites
deanohume
308
31k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
126
53k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
50
5.5k
KATA
mclloyd
30
14k
Embracing the Ebb and Flow
colly
86
4.8k
Typedesign – Prime Four
hannesfritz
42
2.7k
Thoughts on Productivity
jonyablonski
69
4.7k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
Docker and Python
trallard
45
3.5k
Side Projects
sachag
455
43k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
Transcript
IBDesignable x PaintCode Daisuke Yamanaka / Mercari, inc. https://github.com/86 https://twitter.com/86
IBDesignable • Interface Builder্ͰΧελϜϏϡʔΛϨϯμ Ϧϯάͯ͘͠ΕΔػೳ • Xcode 6 ͔Β༻Մೳ •
UIViewͷ֯Λؙͨ͘͠ΓɺઢΛೖΕͨΓ͢ Δ߹ʹIB্ͰϓϨϏϡʔͰ͖ͯศར
Ϋϥεʹରͯ͠IBDesignableଐੑ Λ༩ IBDesignableView
IB্Ͱؙ֯ɺઢΛઃఆͰ͖Δ Α͏ʹΧελϜϓϩύςΟʹ IBInspectableଐੑΛ༩͢Δ (ࠓճUIViewͷextensionͱ͠ ͯ༩ʣ IBDesignableView
Interface Builder ϓϨϏϡʔͰ͖ͨʂ ↓Λઃఆ͢Δͱ..
PaintCode
What is PaintCode? • ϕΫλʔϕʔεͷυϩʔΠϯάπʔϧ • υϩʔ݁ՌϦΞϧλΠϜͰObjective-C/ SwiftͰॻ͖ग़͞ΕΔ • Video
Tutorials http://www.paintcodeapp.com/tutorials
Support Platform • iOS : Objc, Swift, C# Xamarin •
OS X : Objc, Swift • Web : SVG
Drawing
Color • ϕʔεΧϥʔΛఆٛ • ϕʔεΧϥʔΛΩʔʹɺ ໌ɺ࠼ɺ৭૬ɺಁ໌ ͳͲʹมߋΛՃ͑ͨα ϒΧϥʔΛՃͰ͖Δ
Variables/Expression • ಛఆͷύϥϝʔλΛม ʹ͢Δ͜ͱ͕Մೳ • มʹࣜΛ͏͜ͱ Մೳ ” on ==
YES ? onColor : offColor ”
Export as StarKit Class ελʔΛඳը͢Δϝιου
StarView IB্ͰOn/OffΛΓସ͑ΒΕΔΑ͏ʹ
StarView PaintCode͔Βग़ྗͨ͠Ϋϥεͷ ελʔඳըϝιουΛݺͿ
Interface Builder ϓϨϏϡʔͰ͖ͨʂ ↓Λઃఆ͢Δͱ..
Interface Builder ৭͕มΘΔʂ ↓Λઃఆ͢Δͱ..
IBDesignable x PaintCode Super Awesome!!! Sample code : https://github.com/86/StarKit