From 1d30c54e8b545ca40ad885830ed0a21cd4a12f7a Mon Sep 17 00:00:00 2001 From: Abe White Date: Tue, 19 Mar 2024 10:48:46 -0500 Subject: [PATCH] Re-mark toolbar modifiers as unavailable until we add support --- README.md | 4 ++++ Sources/SkipUI/SkipUI/Commands/Toolbar.swift | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2499ecad..51aa9507 100644 --- a/README.md +++ b/README.md @@ -1269,6 +1269,10 @@ Support levels: + + ✅ + .toolbarTitleDisplayMode + 🟢 diff --git a/Sources/SkipUI/SkipUI/Commands/Toolbar.swift b/Sources/SkipUI/SkipUI/Commands/Toolbar.swift index 0274965d..8e3b9f65 100644 --- a/Sources/SkipUI/SkipUI/Commands/Toolbar.swift +++ b/Sources/SkipUI/SkipUI/Commands/Toolbar.swift @@ -167,6 +167,7 @@ extension View { return self } + @available(*, unavailable) public func toolbar(_ visibility: Visibility, for bars: ToolbarPlacement...) -> some View { #if SKIP return preference(key: ToolbarPreferenceKey.self, value: ToolbarPreferences(visibility: visibility, for: bars)) @@ -175,6 +176,7 @@ extension View { #endif } + @available(*, unavailable) public func toolbarBackground(_ style: any ShapeStyle, for bars: ToolbarPlacement...) -> some View { #if SKIP return preference(key: ToolbarPreferenceKey.self, value: ToolbarPreferences(background: style, for: bars)) @@ -183,7 +185,7 @@ extension View { #endif } - + @available(*, unavailable) public func toolbarBackground(_ visibility: Visibility, for bars: ToolbarPlacement...) -> some View { #if SKIP return preference(key: ToolbarPreferenceKey.self, value: ToolbarPreferences(backgroundVisibility: visibility, for: bars)) @@ -205,6 +207,7 @@ extension View { #endif } + @available(*, unavailable) public func toolbarTitleMenu(@ViewBuilder content: () -> any View) -> some View { #if SKIP return preference(key: ToolbarPreferenceKey.self, value: ToolbarPreferences(titleMenu: content()))