From 2cba6ae62faa7240ba307a6533a1b45eb0d5135f Mon Sep 17 00:00:00 2001 From: vistar941 Date: Sun, 2 Aug 2026 23:32:32 +0900 Subject: [PATCH] Document custom title animations --- README-ja.md | 10 ++++++++++ README.md | 11 ++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/README-ja.md b/README-ja.md index 111f925..bb03567 100644 --- a/README-ja.md +++ b/README-ja.md @@ -72,6 +72,16 @@ struct ContentView: View { } ``` +カスタムタイトルビューでは、opacityのアニメーションのみが使用されます。iOS 26以降向けのblurとoffsetを使用したエフェクトは、文字列ベースのタイトルAPIを使用した場合にのみ有効です。 + +### カスタムアニメーションを使用 +```swift +.scrollAwareTitle("CustomTitle") +.scrollAwareTitleAnimation(.spring(duration: 0.4)) +``` + +`nil`を指定するか、`.scrollAwareTitleAnimation(_:)`を使用しない場合は、現在のOSバージョンに応じた組み込みのアニメーションが使用されます。 + ## ライセンス MIT ライセンスのもとで提供されます。 diff --git a/README.md b/README.md index a4dda60..cf51202 100644 --- a/README.md +++ b/README.md @@ -72,8 +72,17 @@ struct ContentView: View { } ``` +Custom title views use the opacity animation only. The blur and offset effect for iOS 26 and later is available only when using a string-based title API. + +### Using a Custom Animation +```swift +.scrollAwareTitle("CustomTitle") +.scrollAwareTitleAnimation(.spring(duration: 0.4)) +``` + +Pass `nil`, or omit `.scrollAwareTitleAnimation(_:)`, to use the built-in animation selected for the current OS version. + ## License Provided under the MIT License. vistar941 © 2026 -