Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Web からアプリの世界にやってきてハマったこと
Search
manemone
August 11, 2015
Technology
60
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Web からアプリの世界にやってきてハマったこと
BearTail エンジニア交流 #1 での発表スライド(再構成版)
https://atnd.org/events/68533
manemone
August 11, 2015
Transcript
31 slides
Web ͔ΒΞϓϦͷੈքʹ ͖ͬͯͯϋϚͬͨ͜ͱ
͋ͳͨ୭ ᖛాҰتɺWeb ΤϯδχΞ ΫοΫύουגࣜձࣾ
ʮ͓͍͍݈͠߁ʯ ͱ͍͏αʔϏεΛ࡞ͬͯΔ
"Web" ΤϯδχΞ ͷ͚ͣͩͬͨͲ……ɻ
(Web|ΞϓϦ) ΤϯδχΞʹ ԟʑʹͯ͋͠Δ͜ͱ
ࠓ͢͜ͱ • Web ౕͬͯͨΒ͕͡ΊͯΞϓϦ։ൃͬͨΒେมͩͬͨ • ͭ·͖͕ͮͪͳϙΠϯτΛవΊͯΈͨΑ
ը໘ͷΓ͚ઃܭ
Web - جຊతʹจॻʢϋΠύʔςΩετʣ • ϖʔδ୯ҐͰϏϡʔΛ࡞ • ϖʔδϦιʔεͷ CRUD ૢ࡞୯Ґ͕جຊ •
Ͱ͖ͨϖʔδΛϦϯΫͰͭͳ͍Ͱ͍͘ • Ϣʔβࣗ༝ʹϖʔδ͍ؒͬͨΓདྷͨΓͰ͖Δ
ΞϓϦ - OS ͷ UI ͱಉ Ϗϡʔ GUI ͦͷͷ •
ΠϯλϥΫςΟϒͳ UI ཁૉΛଟ༻ • ͳΔ͘ը໘ભҠΛ͠ͳ͍ ϦϯΫͷ֓೦ͳ͍ • Ϣʔβ͖ͳը໘ʹδϟϯϓͰ͖ͳ͍ • ֤ը໘ͷදࣔϑϩʔݶఆ
Web ͬΆ͍ભҠʹ͠ͳ͍ ͍͍ͨͯը໘Λ͚͗͢Δ • ࡞ը໘ˠ֬ೝը໘ˠྃը໘ • ̋ ϞʔμϧͰೖྗը໘ग़͖͙ͯͯ͢ফ͑Δ •
ʮؔ৺ʯʮతʯ୯ҐͰҰͭͷը໘ʹ·ͱΊΔͱΞϓϦͬ Ά͘ͳΔ • ίϯςϯπϝΠϯͰͳ͍ը໘ͰεΫϩʔϧආ͚Δ
Android ͱ iOS ͷ UI ͷ ҧ͍Λແࢹͯ͠͠·͏
Α͋͘Δߟ͑ ʮ྆ OS ڞ௨ͷ UI ΛσβΠϯ͍ͯ͠·Θͦ͏ʯ
Ίͨ΄͏͕͍͍ ʮ྆ OS ڞ௨ͷ UI ΛσβΠϯ͍ͯ͠·Θͦ͏ʯ
OS ͝ͱͷࣗવͳૢ࡞ମݧ͕ࣦΘΕΔ • λϒͷҐஔ • ʮΔʯΛͲ͜ʹஔ͔͘ʁ UI ΧελϚΠζ͕େม • ڞ௨σβΠϯʹ߹ΘͤΔͨΊʹඪ४ίϯϙʔωϯτΛΧελ
ϚΠζ
Dropbox ͷྫ
ը໘෦ͷΧελϚΠζ͕େม
Web ͷΧελϜ෦࡞ UI ίϯϙʔωϯτ = HTML ཁૉ + CSS +
JS جຊతͳྲྀΕ 1. div ϘοΫεΛ༻ҙ 2. CSS Ͱஔɺ০ 3. JS ͰΠϯλϥΫγϣϯΛ͚ͭΔ
Web ͷΧελϜ෦࡞ • ը໘০༻ͷ؆қͳݴޠ͕༻ҙ͞Ε͍ͯΔ • ͲΜͳ DOM (form ܥΛআ͍ͯ)
ಉ͡Α͏ʹѻ͑Δ • ΠϯλϥΫγϣϯઃఆΠϕϯτΩϟονˠclass ͷมߋͱ୯ ७
ΞϓϦ(iOSͷ߹)ͷΧελϜ෦࡞ UI ίϯϙʔωϯτ = Swift ͷ Ϋϥε جຊతͳྲྀΕ 1. ݩͱͳΔΫϥεͷܧঝؔΛ֬ೝ
2. Swift ίʔυͰஔɺ০ 3. Swift ίʔυͰΠϕϯτͷॲཧ
ΞϓϦ(iOSͷ߹)ͷΧελϜ෦࡞ • جຊతʹͯ͢ͷઃఆΛ Swift ʢ൚༻ݴޠʣͰߦ͏ඞཁ • ܧঝؔʹΑͬͯίϯϙʔωϯτ͝ͱʹઃఆՄೳͳ০߲ ͕ҟͳΔ • ίϯϙʔωϯτ͝ͱʹ࣮͠ͳ͚ΕͳΒͳ͍ϝιου͕
ࡉ͔ܾ͘ΊΒΕ͍ͯΔ • جຊతʹॻ͔ͳ͚ΕͳΒͳ͍ྔ͕ଟ͍
͜ΜͳཁૉΛͭ͘Ζ͏ͱͨ͠ͱ͖ • ઢϘʔμ • ؙ֯
Web border: 2px dotted solid; corner-radius: 4px;
ΞϓϦ(!) var line = UIBezierPath() lineColor.setStroke() line.lineWidth = lineWidth line.flatness
= pathFlatness line.setLineDash(linePattern, count: linePattern.count, phase: 0) line.lineCapStyle = correctedLineCap if drawTopLeftCorner { line.moveToPoint(borderTopLeftCornerEntry) line.addArcWithCenter(borderTopLeftCornerCenter, radius: borderTopLeftRadius, startAngle: CGFloat(M_PI), endAngle: CGFloat(1.5*M_PI), clockwise: true) } if drawTop { if !drawTopLeftCorner { line.moveToPoint(borderTopLeftCornerExit) } line.addLineToPoint(borderTopRightCornerEntry) } if drawTopRightCorner { if !drawTop { line.moveToPoint(borderTopRightCornerEntry) } line.addArcWithCenter(borderTopRightCornerCenter, radius: borderTopRightRadius, startAngle: CGFloat(1.5*M_PI), endAngle: CGFloat(2.0*M_PI), clockwise: true) } if drawTrailing { if !drawTopRightCorner { line.moveToPoint(borderTopRightCornerExit) } line.addLineToPoint(borderBottomRightCornerEntry) } if drawBottomRightCorner { if !drawTrailing { line.moveToPoint(borderBottomRightCornerEntry) } line.addArcWithCenter(borderBottomRightCornerCenter, radius: borderBottomRightRadius, startAngle: CGFloat(0.0), endAngle: CGFloat(0.5*M_PI), clockwise: true) } if drawBottom { if !drawBottomRightCorner { line.moveToPoint(borderBottomRightCornerExit) } line.addLineToPoint(borderBottomLeftCornerEntry) } if drawBottomLeftCorner { if !drawBottom { line.moveToPoint(borderBottomLeftCornerEntry) } line.addArcWithCenter(borderBottomLeftCornerCenter, radius: borderBottomLeftRadius, startAngle: CGFloat(0.5*M_PI), endAngle: CGFloat(1.0*M_PI), clockwise: true) } if drawLeading { if !drawBottomLeftCorner { line.moveToPoint(borderBottomLeftCornerExit) } line.addLineToPoint(borderTopLeftCornerEntry) } line.stroke() self.layoutIfNeeded()
ΞϓϦͰΧελϜ UI Λ࡞Δͱ͖ • جຊతʹͳΔ͘࡞Βͳ͍ • Ұ࡞ͬͨΒΞϓϦશମͰ͍·ΘͤΔઃܭʹ͓ͯ͘͠ • ݩͱͳΔ UI
෦ͷੑ࣭Λԡ͑͞Δ • جఈΫϥεͳʹ͔ʁ • ͲΜͳϓϩύςΟ͕͋Δ͔ʁ
ϕʔλ͕͍͠(iOS)
Web • εςʔδϯάαʔόΛݐͯͯͦ͜ʹσϓϩΠ • ςελࣗͷϚγϯͷϒϥβ͔Βࣗ༝ʹʹΞΫηε • ։ൃ͕ਐΜͩΒ͖ͳλΠϛϯάͰ࠷৽൛ʹߋ৽Ͱ͖Δ
iOS • ςελʹసૹɺ͘͠ AppleStore ʹҰఏग़ (TestFlight) • ςελ UUID ʗϝʔϧΞυϨεΛ։ൃऀʹఏग़͢Δඞ
ཁ • ߋ৽ͷͨͼʹసૹ͠ͳ͓͠ʗApple ʹਃ νʔϜͰͷυοάϑʔσΟϯά͕ਏ͍
Deploy gate Λͬͯղফ • UUID ͷཧɺΞϓϦΠϝʔδͷཧ Λͬͯ͘ΕΔαʔϏε • ٬ઌʹ͢Δͱ͖ϥΠηϯε ҙ
Alternative • Fabric
େมͩͬͨ…… !
ͦΕͰΞϓϦͷྑ͞Λͬͨ • ͘͘͞͞ಈ͘ • ʮ͖ͬͪΓʯͯ͠Δײ͡ʢॏཁʣ • Ϣʔβମݧͷͯ͢Λ੍ޚͰ͖Δ
Ұࣗͷ Web ΞϓϦΛωΠςΟϒԽͯ͠ΈΑ͏ ! αΫαΫײମݧͯ͠ΈΔՁ͕͋Δ
More Decks by manemone
See All by manemone
最近読んだ海外記事とその見つけかた / my-recent-impressed-articles-and-how-to-find-them
manemone
0
68
Other Decks in Technology
See All in Technology
JAWS_FESTA2026_オンプレ-AWS間プロキシサーバの移行_性能_障害対応で得た実践ノウハウ_高島一晃.pdf
tkazuaki0820
1
130
OpenTelemetryで変わった 新時代のCloudWatchメトリクス監視
tsukuboshi
0
160
_マネジメントする人される人ナイト_2026__良いチームを作っていきたい_お気持ち_.pdf
xkxaxkx
0
510
常時稼働エージェントの作り方(Claude公式ブログを資料化)
minorun365
PRO
10
16k
内製アプリとClaudeスキルのセキュリティチェック、 Backlogの課題で回しています。
ayaka_egaaa
0
190
目を覚ませ!僕らの認証情報が何者かに侵略されてるぞ
tkito
1
140
Reticulum, le réseau cypherpunk dont vous avez besoin !
rlifchitz
0
140
市販IoT機器や自作IoT機器とHomeAssistantを駆使して家の電気代をできる限り見える化する方法の考案
harutiro
0
190
狙われているAPIの脆弱性!今こそ手をつけるべき根本的な対策とは?
nagix
0
130
Agent Harnessはどう作る?事例から学ぶAI Agentの設計思想
sergicalsix
0
320
[NW-JAWS DAY]「うちのAWS、インターネット出られないんで」― AWS外の自社サービスをPrivateLinkでシュッと公開する方法
ykimi
2
520
Gov-JAWS#9 統合監視機能のマネージドサービス化+AIによる障害時自動調査
fj_yoshimura_kosuke
0
110
Featured
See All Featured
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
520
Heart Work Chapter 1 - Part 1
lfama
PRO
11
37k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.7k
ラッコキーワード サービス紹介資料
rakko
5
5.8M
Deep Space Network (abreviated)
tonyrice
0
420
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
400
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
880
Claude Code のすすめ
schroneko
67
230k
Documentation Writing (for coders)
carmenintech
77
5.6k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
560
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
370