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
作文ツール(Writing Tools)をアプリから制御する
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Ryu-nakayama
June 27, 2025
Programming
84
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
作文ツール(Writing Tools)をアプリから制御する
mobile.stmn #12の登壇資料です
Ryu-nakayama
June 27, 2025
More Decks by Ryu-nakayama
See All by Ryu-nakayama
AIに「任せない」という選択
ryunakayama
0
72
iOS機能開発のAI環境と起きた変化
ryunakayama
0
260
日本だけで解禁されているアプリ起動の方法
ryunakayama
0
450
iOSアプリでフロントエンドと仲良くする
ryunakayama
0
170
「ジェン文字」使ってますか?
ryunakayama
0
97
Health Kit × Foundation Models でAIコーチを作ってみた
ryunakayama
0
380
iOSの画面の状態のアレコレを調査してみた
ryunakayama
0
130
iOSアプリで測る!名古屋駅までの 方向と距離
ryunakayama
0
340
「ジェン文字」をアプリ内で使ってみよう
ryunakayama
0
220
Other Decks in Programming
See All in Programming
すこし踏み込む CancellationToken
htkym
2
650
AWS DevOps Agentで インシデント対応をAIに任せたい
honmarkhunt
7
3k
thread_parallel_with_free-threaded_Python_and_NumPy.pdf
riku_sakamoto
0
350
GKE で Pod の見方を変えたら、スケールアウト時の挙動を真に捉えられた話
stkk
0
130
Intent as Code
shoppingjaws
6
1.1k
App Intentsのビルドプロセスを支える技術
kntkymt
0
410
Security issues being discussed on Web Platforms
petamoriken
0
1k
選挙速報を多くのユーザーへ 届ける Live Activities 設計
hamayokokuririn
0
150
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
5
7.8k
LL言語やWebフレームワークのPostgreSQL対応 〜DBの機能がユーザーに届くまで〜
kentaroutakeda
1
160
iOSDC Japan 2026 - Swiftで作って学ぼう!データベース自作入門
kaseken
2
190
市販E-Readerを乗っ取れ 〜Embedded Swiftで電子ペーパーガジェットを制御する〜
trickart
0
200
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
HDC tutorial
michielstock
2
880
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
460
Ruling the World: When Life Gets Gamed
codingconduct
0
340
How GitHub (no longer) Works
holman
316
150k
Crafting Experiences
bethany
1
350
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.2k
Believing is Seeing
oripsolob
1
220
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
240
Test your architecture with Archunit
thirion
2
2.4k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
500
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
65k
Transcript
作文ツール(Writing Tools)を アプリから制御する iOSアプリ開発グループ 中山 龍 2025年06月27日
自己紹介 中山 龍 (なかやま りゅう) • 株式会社kubell ◦ 新卒3年目のiOSエンジニア(23) ◦
「Chatwork」アプリの開発を担当 • 愛知県在住 ◦ @ryu_develop WWDC25 Recap - Japan-\(region).swift 名古屋会場へぜひお越しください
00 | 前提
作文ツール(WritingTools)とは
作文ツール(Writing Tools)とは • Apple Intelligenceの機能の1つ • 校正や適切な言い回し・トーンの提案、要 約、文章の生成などをすることができる • iOS18.4から日本語にも対応した(利用可能機
種の条件あり) • アプリやWebサイトを含め、文章を入力する ほとんどの場所で利用できる iPhoneユーザーガイド
作文ツール(Writing Tools)とは • Apple Intelligenceの機能の1つ • 校正や適切な言い回し・トーンの提案、要 約、文章の生成などをすることができる • iOS18.4から日本語にも対応した(利用可能機
種の条件あり) • アプリやWebサイトを含め、文章を入力する ほとんどの場所で利用できる iPhoneユーザーガイド 作文ツールをボタンで呼び出すなど、 アプリ側で制御する方法について紹介します
今回の題材
今回の題材 • 作文ツールをボタンの処理によって呼び出す • 作文ツールでTextView内の文字列を簡単に要約する • 作文ツールが使用可能かどうかに応じて、これらの処理に関連する表示を出 し分ける ボタンによる作文ツール表示 の動線
対象の文字列を選択した状態での 作文ツール表示
01 | 作文ツール(Writing Tools)をボタン の処理で表示する
ボタンで作文ツールを表示するには showWritingToolsメソッドを使う https://developer.apple.com/documentation/uikit/uires ponderstandardeditactions/showwritingtools(_:)
ボタンで作文ツールを表示するには 作文ツール呼び出しボタンタップ時の挙動 • UITextViewにフォーカスを当てる • showWritingToolsで作文ツールを表示する
ボタンで作文ツールを表示するには(動作)
02 | 作文ツールでTextViewの内容を簡単 に要約する
作文ツールでTextViewの内容を簡単に要約する Point: 作文ツールには選択中の文字列が対象として渡される UITextViewのtextを全選択状態にする ↓ 作文ツールを呼び出す ↓ 作文ツールから要約を利用する
作文ツールでTextViewの内容を簡単に要約する 要約呼び出しボタンタップ時の挙動 • UITextViewのtextを全選択にする • showWritingToolsで作文ツールを表示する
作文ツールでTextViewの内容を簡単に要約する 作文ツール内『要約』 をタップ
03 | 作文ツールが使用可能かを判断し て、ボタンを出し分ける
作文ツールが使用可能かを判断して、ボタンを出し分ける isWritingToolsAvailableを使う https://developer.apple.com/documentation/uikit/uiwri tingtoolscoordinator/iswritingtoolsavailable/
作文ツールが使用可能かを判断して、ボタンを出し分ける ボタン表示の処理 • isWritingToolsAvailable が true なら、作文 ツールが利用可能なのでボタンを表示
作文ツールが使用可能かを判断して、ボタンを出し分ける iPhone16 iOS18.4 シミュレーター iPhone15 Pro iOS18.5 Apple Intelligence有効 iPhone15
Pro iOS18.5 Apple Intelligence無効
まとめ
まとめ • showWritingToolsメソッドを使うことで、任意の処理によって作文ツールを表 示することができる ◦ ボタンなどで作文ツールへの動線を提供することができるようになる • isWritingToolsAvailableを使うことで、作文ツールが利用可能な状態(機種・設 定...)なのかを判別することができる ◦
作文ツール動線の表示出し分けなどができる 22
わかったこと • 作文ツールは対象となる文字列やコンテキストを引数として渡すような仕組み は用意されていない • 特定の機能(作文・要約...)を呼び出し仕組みも用意されておらず、実現可能なの は作文ツールの表示まで • 個人的にはWWDC 2025で発表された
Foundation Models Frameworkに期待 ◦ 作文ツールよりも柔軟にAI補助を実現できそう 23
働くをもっと楽しく、創造的に 24