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
SwiftUIでキラキラを作る
Search
Asakura Shinsuke
July 01, 2025
89
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
SwiftUIでキラキラを作る
Asakura Shinsuke
July 01, 2025
More Decks by Asakura Shinsuke
See All by Asakura Shinsuke
Creating an English conversation app using the Foundation Models framework
asashin227
0
8
Ore Keybord #1
asashin227
0
1.5k
Build AI app with AI agent
asashin227
0
17
ReactNative入門
asashin227
0
71
アウトプットしようね
asashin227
0
34
ローカル拠点でのEMの役割
asashin227
0
290
XcodeCloud移行奮闘記
asashin227
0
130
現場主導の開発効率向上の仕組みづくり
asashin227
0
400
Xcode File templateで 開発をちょっと便利にしたはなし
asashin227
0
110
Featured
See All Featured
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
400
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.9k
Marketing to machines
jonoalderson
1
5.6k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
260
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
650
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.5k
Chasing Engaging Ingredients in Design
codingconduct
0
260
Code Review Best Practice
trishagee
74
20k
Optimising Largest Contentful Paint
csswizardry
37
3.9k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
230
Transcript
Copyright © stmn, inc. All rights reserved. プロダクト開発部 エンジニアリングマネージャ 朝倉慎亮(@asashin227)
SwiftUIで キラキラを作る
2 プロダクト開発部 エンジニアリングマネージャ 朝倉慎亮 @asashin227 自己紹介 学生時代からiOSアプリ開発を経験、 2023年4月にiOSエンジニアとして スタメンに入社。 2024年5月からエンジニアリングマ
ネージャ 01. 自己紹介
最近こうゆうのありますよね
アプリ内でのホログラム表現 端末の傾きによってカードの光沢変化 マイナンバーカード
アプリ内でのホログラム表現 メルカリアイコンがホログラム デバイスの傾きによって光沢が変化 メルカード
「間違いない!アレはキラキラだ!」
ゴール ホログラム表示(キラキラ✨)を SwiftUIのModifierとして実装する 独自Viewをサクッとキラキラにする
作り方
作り方 キラキラレイヤー✨を作る ジャイロセンサーの数値によってキラキラレイヤー✨を動かす キラキラレイヤー✨をViewModifier化する
キラキラ✨レイヤーを作る 01
ホログラムを以下のように分解する グラデーションレイヤ 光沢レイヤ 反射光レイヤ
グラデーションレイヤ 左上から右下にかけて グラデーションをかける
グラデーションレイヤ
グラデーションレイヤ 左上を中心に 円形にグラデーション
これらを重ねると、、、
虹色レイヤー
ジャイロセンサーの数値によって キラキラレイヤー✨を動かす 02
作り方 ジャイロセンサーの値取得 取得した値によって以下の値を変更 色の取得 フィルタの回転 光沢の位置変更
ジャイロセンサーの数値取得
回転角度から色の配列を生成する
フィルタの回転、光沢フィルタの位置変更
キラキラレイヤー✨を ViewModifier化する 03
キラキラレイヤーをViewModifier化する
完成✨
ありがとうございました! 25