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
⚪⚪の⚪⚪をSwiftUIで再現す る
Search
Sugiy
March 04, 2025
Programming
330
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
⚪⚪の⚪⚪をSwiftUIで再現す る
Sugiy
March 04, 2025
More Decks by Sugiy
See All by Sugiy
その不具合、どのWidgetですか? ― アプリ内で“直せるバグ報告”を作る
u503
0
130
The Flutter Journey of Building a Live Streaming App — With a Side of Performance Tuning
u503
1
650
Swiftで我が家を より便利に、安全に!
u503
0
3.4k
PotatoTips_73.pdf
u503
0
130
Swiftでドローンを飛ばしてみた
u503
0
550
Other Decks in Programming
See All in Programming
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
4
3.5k
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
250
dotNET_vulnclicker_intro.pdf
deka_morita
0
160
Performance Optimization With LLMs
xleitix
0
230
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
1
1.9k
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
210
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
220
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
1.2k
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
250
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
4
1.7k
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
110
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
120
Featured
See All Featured
Un-Boring Meetings
codingconduct
0
480
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
670
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
820
Producing Creativity
orderedlist
PRO
348
41k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
500
Testing 201, or: Great Expectations
jmmastey
46
8.4k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
580
Into the Great Unknown - MozCon
thekraken
41
2.8k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
970
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
23k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
640
Abbi's Birthday
coloredviolet
4
11k
Transcript
⚪⚪の⚪⚪をSwiftUIで再現す る Swift愛好会 20250304 in DeNA Sugiy/Yugo Sugiyama
README 1. Sugiy/Yugo Sugiyama(Yugo Sugiyama) 2. iOS/Flutterエンジニア 3. Flutter製のスポーツ系ライブ配信サービスの開発をしてます 4.
和食と和菓子と魚が好き 5. 先週注文住宅の長い長い要件定義が終わった!
この形をSwift(UI)で再現しようと思った時に 困ったことはありますか?
実際のUIデザインではなくても、 これをSwift(UI)で作ったらどうなる? って思う時がある
トレーディングカードゲームといえば?
個人的には「遊戯王カード」
「遊戯王カード」の「アニメの召喚エ フェクト」を SwiftUIで再現する Swift愛好会 20250304 in DeNA Sugiy/Yugo Sugiyama
デモ
参考アプリのダウンロード • TestFlightからダウンロードできます ◦ https://testflight.apple.com/join/s5j2zJbS ◦ いつものスライド用アプリ ◦ macOS/iOS/iPadOSをサポート ◦
OTHER > Sample Views > Yugioh Effect • https://github.com/u5-03/YugiohCardEffect
Xcodeでのコード確認
線を表示するためのPathの条件を整理する 1. 線は中央のカードの上と右、左の辺から、それぞれの方向に伸びる a. 気持ち曲がるパターンを多めに、ランダムに生成する 2. 線は直進、左or右に1度曲がり、再び直線に戻る3パターンがある 3. 曲がるパターンの時は、始点方向ではなく、終点方向に伸びる a.
曲がる時の角度は25~35度の範囲にする 4. 最初に曲がるポイントは直線時の進捗率の 10%から60%の間にする 5. 2回目に曲がるポイントは最初に曲がったポイントの進捗率より大きい or 90%までの間のどち らか 6. 各辺上の各始点はある程度ばらけるようにする a. それぞれの点を表示すべき線の数で等間隔に区切り、そのそれぞれの間隔の中でランダ ムに始点を決定する 7. 始点は中央のカードの周囲の辺、終点は外部の枠 (事実上デバイスのエッジ)の枠を指定
結論・学んだこと 1. ただロマン実装 a. パフォーマンスとかまでしっかり考えた実装になっていない b. 他にも改善したいポイントはある 2. 色々なSwiftのAPIの使い方を知ることができた a.
普段なかなか使わないAPIを試すことができた 3. 複雑な仕様の要件を言語化して、整理する能力が鍛えられそう a. 自分で実装する時も、ChatGPTなどで出力する時も、その仕様の実装レベルまでの細分化・整理が必要 4. 「⚪⚪の⚪⚪をSwiftUIで再現する」、なんか他のシリーズもできそう
ちなみに...
さらにちなみに...
おしまい