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
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
5
59k
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
2.9k
Node vs Deno vs Bun 〜推しランタイムを見つけよう〜
kamekyame
1
160
SES向け、生成AI時代におけるエンジニアリングとセキュリティ
longbowxxx
0
290
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
4
21k
『君の名は』と聞く君の名は。 / Your name, you who asks for mine.
nttcom
1
140
AI時代のアジャイルチームを目指して ー スクラムというコンフォートゾーンからの脱却 ー / Toward Agile Teams in the Age of AI
takaking22
9
3k
First-Principles-of-Scrum
hiranabe
2
1k
自己管理型チームと個人のセルフマネジメント 〜モチベーション編〜
kakehashi
PRO
5
1.5k
戰略轉變:從建構 AI 代理人到發展可擴展的技能生態系統
appleboy
0
180
Java 25に至る道
skrb
3
140
松尾研LLM講座2025 応用編Day3「軽量化」 講義資料
aratako
15
4.9k
Featured
See All Featured
RailsConf 2023
tenderlove
30
1.3k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
200
Embracing the Ebb and Flow
colly
88
4.9k
Designing for Performance
lara
610
70k
The Cult of Friendly URLs
andyhume
79
6.7k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.1k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.5k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
590
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Designing Experiences People Love
moore
143
24k
Automating Front-end Workflow
addyosmani
1371
200k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
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