From e98030f694861986821d5f4dce1a0c9273924858 Mon Sep 17 00:00:00 2001 From: Ivan Vorobei Date: Wed, 22 Mar 2023 21:00:24 +0300 Subject: [PATCH] Fix tv os compability. --- .../SwiftBoost/UIKit/Extensions/UIToolbarExtension.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/SwiftBoost/UIKit/Extensions/UIToolbarExtension.swift b/Sources/SwiftBoost/UIKit/Extensions/UIToolbarExtension.swift index 7103a2b..dc3fa5b 100644 --- a/Sources/SwiftBoost/UIKit/Extensions/UIToolbarExtension.swift +++ b/Sources/SwiftBoost/UIKit/Extensions/UIToolbarExtension.swift @@ -1,4 +1,4 @@ -#if canImport(UIKit) && (os(iOS) || os(tvOS)) +#if canImport(UIKit) && (os(iOS)) import UIKit extension UIToolbar { @@ -6,10 +6,10 @@ extension UIToolbar { /** SwiftBoost: Set appearance for tab bar. */ - @available(iOS 13.0, tvOS 13.0, *) + @available(iOS 13.0, *) public func setAppearance(_ value: ToolbarAppearance) { self.standardAppearance = value.standardAppearance - if #available(iOS 15.0, tvOS 15.0, *) { + if #available(iOS 15.0, *) { self.scrollEdgeAppearance = value.scrollEdgeAppearance } } @@ -17,7 +17,7 @@ extension UIToolbar { /** SwiftBoost: Appearance cases. */ - @available(iOS 13.0, tvOS 13.0, *) + @available(iOS 13.0, *) public enum ToolbarAppearance { case transparentAlways