mirror of
https://github.com/yattee/yattee.git
synced 2026-02-19 17:29:45 +00:00
26 lines
475 B
Swift
26 lines
475 B
Swift
//
|
|
// SidebarAdaptableModifier.swift
|
|
// Yattee
|
|
//
|
|
// Navigation-related view modifiers.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
// MARK: - Sidebar Adaptable Modifier
|
|
|
|
#if os(iOS)
|
|
struct SidebarAdaptableModifier: ViewModifier {
|
|
func body(content: Content) -> some View {
|
|
content.tabViewStyle(.sidebarAdaptable)
|
|
}
|
|
}
|
|
|
|
extension View {
|
|
/// Applies sidebar adaptable style.
|
|
func sidebarAdaptable() -> some View {
|
|
modifier(SidebarAdaptableModifier())
|
|
}
|
|
}
|
|
#endif
|