Skip to content

Commit

Permalink
fix for visionOS (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
baptistedajon committed May 18, 2024
1 parent 4cf67c3 commit 211a6ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public class VitaminSegmentedControl: UISegmentedControl {

self.setTitleTextAttributes(selectedAttributes, for: .selected)
self.setTitleTextAttributes(unselectedAttributes, for: .normal)

#if os(iOS)
self.dropShadow(shadowType: .shadow100)
#endif
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import UIKit
import VitaminCore

#if os(iOS)
/// Generic view controller that allows to display different view controllers with a `VitaminSegmentedControl` to choose which controller is displayed
public class VitaminSegmentedControlController: UIViewController {
/// List of viewControllers managed by the VitaminSegmentedControlController
Expand Down Expand Up @@ -182,3 +183,4 @@ public class VitaminSegmentedControlController: UIViewController {
viewController.removeFromParent()
}
}
#endif

0 comments on commit 211a6ee

Please sign in to comment.