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
QAセントラル組織が運営する自動テストプラットフォームの課題と現状
lycorptech_jp
PRO
0
240
Datadog On-Call と Cloud SIEM で作る SOC 基盤
kuriyosh
0
110
お試しで oxlint を導入してみる #vuefes_aftertalk
bengo4com
2
1.4k
Beyond Prompts: Building Intelligent Applications with Genkit and the Model Context Protocol
peterfriese
0
110
Logik: A Free and Open-source FPGA Toolchain
omasanori
0
260
エンタープライズ企業における開発効率化のためのコンテキスト設計とその活用
sergicalsix
1
150
ソフトウェアテストのAI活用_ver1.50
fumisuke
0
270
龍昌餃子で理解するWebサーバーの並行処理モデル - 東葛.dev #9
kozy4324
1
140
【Android】テキスト選択色の問題修正で心がけたこと
tonionagauzzi
0
120
Master Dataグループ紹介資料
sansan33
PRO
1
3.9k
Proxmox × HCP Terraformで始めるお家プライベートクラウド
lamaglama39
1
130
QAエンジニアがプロダクト専任で チームの中に入ると。。。?/登壇資料(杉森 太樹)
hacobu
PRO
0
170
Featured
See All Featured
Building Adaptive Systems
keathley
44
2.8k
Optimising Largest Contentful Paint
csswizardry
37
3.5k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.2k
Balancing Empowerment & Direction
lara
5
730
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
140
34k
Optimizing for Happiness
mojombo
379
70k
GraphQLとの向き合い方2022年版
quramy
49
14k
The Cost Of JavaScript in 2023
addyosmani
55
9.2k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.2k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.8k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
192
56k
Building an army of robots
kneath
306
46k
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