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
Why App Signing Matters for Your Android Apps - Android Bangkok Conference 2024
akexorcist
0
120
Terraform Stacks入門 #HashiTalks
msato
0
350
Making your applications cross-environment - OSCG 2024 NA
salaboy
0
180
元旅行会社の情シス部員が教えるおすすめなre:Inventへの行き方 / What is the most efficient way to re:Invent
naospon
2
330
The Rise of LLMOps
asei
5
1.2k
個人でもIAM Identity Centerを使おう!(アクセス管理編)
ryder472
3
170
透過型SMTPプロキシによる送信メールの可観測性向上: Update Edition / Improved observability of outgoing emails with transparent smtp proxy: Update edition
linyows
2
210
Why does continuous profiling matter to developers? #appdevelopercon
salaboy
0
180
BLADE: An Attempt to Automate Penetration Testing Using Autonomous AI Agents
bbrbbq
0
290
ドメイン名の終活について - JPAAWG 7th -
mikit
33
20k
IBC 2024 動画技術関連レポート / IBC 2024 Report
cyberagentdevelopers
PRO
0
110
ノーコードデータ分析ツールで体験する時系列データ分析超入門
negi111111
0
410
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
Gamification - CAS2011
davidbonilla
80
5k
Facilitating Awesome Meetings
lara
50
6.1k
Fireside Chat
paigeccino
34
3k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
It's Worth the Effort
3n
183
27k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
28
2k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
YesSQL, Process and Tooling at Scale
rocio
169
14k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
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