Skip to content

Commit

Permalink
Re-mark toolbar modifiers as unavailable until we add support
Browse files Browse the repository at this point in the history
  • Loading branch information
aabewhite committed Mar 19, 2024
1 parent 8a16e08 commit 1d30c54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,10 @@ Support levels:
</details>
</td>
</tr>
<tr>
<td>✅</td>
<td><code>.toolbarTitleDisplayMode</code></td>
</tr>
<tr>
<td>🟢</td>
<td>
Expand Down
5 changes: 4 additions & 1 deletion Sources/SkipUI/SkipUI/Commands/Toolbar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand All @@ -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))
Expand All @@ -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()))
Expand Down

0 comments on commit 1d30c54

Please sign in to comment.