diff --git a/Sources/SkipUI/SkipUI/Commands/Actions.swift b/Sources/SkipUI/SkipUI/Commands/Actions.swift index fb223ee5..9637f6cf 100644 --- a/Sources/SkipUI/SkipUI/Commands/Actions.swift +++ b/Sources/SkipUI/SkipUI/Commands/Actions.swift @@ -463,7 +463,7 @@ public struct RenameAction { public struct RenameButton : View where LabelX : View { /// Creates a rename button. - public init() where LabelX == Label { fatalError() } + public init() where LabelX == Label /**/ { fatalError() } @MainActor public var body: some View { get { return stubView() } } diff --git a/Sources/SkipUI/SkipUI/Containers/TabView.swift b/Sources/SkipUI/SkipUI/Containers/TabView.swift index fa4569f5..1c3136eb 100644 --- a/Sources/SkipUI/SkipUI/Containers/TabView.swift +++ b/Sources/SkipUI/SkipUI/Containers/TabView.swift @@ -7,13 +7,19 @@ import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.padding import androidx.compose.material3.ExperimentalMaterial3Api +import androidx.compose.material3.NavigationBar +import androidx.compose.material3.NavigationBarItem import androidx.compose.material3.Scaffold import androidx.compose.runtime.Composable import androidx.compose.runtime.mutableStateOf import androidx.compose.ui.Modifier +import androidx.navigation.NavHostController import androidx.navigation.compose.NavHost import androidx.navigation.compose.composable +import androidx.navigation.compose.currentBackStackEntryAsState import androidx.navigation.compose.rememberNavController #endif @@ -44,7 +50,7 @@ public struct TabView : View where Content : View { for tabIndex in 0.. : View where } @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *) -extension ContentUnavailableView where LabelX == Label, Description == Text?, Actions == EmptyView { +extension ContentUnavailableView where LabelX == Label /**/, Description == Text?, Actions == EmptyView { /// Creates an interface, consisting of a title generated from a localized /// string, an image and additional content, that you display when the diff --git a/Sources/SkipUI/SkipUI/System/UIKit.swift b/Sources/SkipUI/SkipUI/System/UIKit.swift index 6b16dfaa..166de018 100644 --- a/Sources/SkipUI/SkipUI/System/UIKit.swift +++ b/Sources/SkipUI/SkipUI/System/UIKit.swift @@ -1322,7 +1322,7 @@ extension ContentSizeCategory { } @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *) -extension Label where Title == Text, Icon == Image { +extension Label /* where Title == Text, Icon == Image */ { /// Creates a label with an icon image and a title generated from a /// localized string. diff --git a/Sources/SkipUI/SkipUI/Text/Label.swift b/Sources/SkipUI/SkipUI/Text/Label.swift index 90e4a1dc..4dadcf6e 100644 --- a/Sources/SkipUI/SkipUI/Text/Label.swift +++ b/Sources/SkipUI/SkipUI/Text/Label.swift @@ -6,9 +6,11 @@ import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.IntrinsicSize import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.height +import androidx.compose.material3.LocalTextStyle import androidx.compose.runtime.Composable -import androidx.compose.ui.LocalDensity import androidx.compose.ui.Modifier +import androidx.compose.ui.platform.LocalDensity import androidx.compose.ui.unit.dp #endif