Skip to content

Commit

Permalink
Fix tv os compability.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvorobei committed Mar 22, 2023
1 parent 898f032 commit e98030f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/SwiftBoost/UIKit/Extensions/UIToolbarExtension.swift
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
#if canImport(UIKit) && (os(iOS) || os(tvOS))
#if canImport(UIKit) && (os(iOS))
import UIKit

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
}
}

/**
SwiftBoost: Appearance cases.
*/
@available(iOS 13.0, tvOS 13.0, *)
@available(iOS 13.0, *)
public enum ToolbarAppearance {

case transparentAlways
Expand Down

0 comments on commit e98030f

Please sign in to comment.