From 7444372b94f4ab24546fb851d27932a4d1f83dfc Mon Sep 17 00:00:00 2001 From: amirsaam Date: Thu, 1 Aug 2024 20:21:46 +0330 Subject: [PATCH] Fix Build --- Sources/RadixUI/RadixPrimitives/RadixSegmentedPicker.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/RadixUI/RadixPrimitives/RadixSegmentedPicker.swift b/Sources/RadixUI/RadixPrimitives/RadixSegmentedPicker.swift index 2dfbecf..8767c6d 100644 --- a/Sources/RadixUI/RadixPrimitives/RadixSegmentedPicker.swift +++ b/Sources/RadixUI/RadixPrimitives/RadixSegmentedPicker.swift @@ -7,6 +7,7 @@ import SwiftUI +#if canImport(UIKit) public struct RadixSegmentedPicker { let backgroundColor: Color let selectedColor: Color @@ -21,3 +22,6 @@ public struct RadixSegmentedPicker { UISegmentedControl.appearance().setTitleTextAttributes([.foregroundColor: UIColor(foregroundColor)], for: .selected) } } +#elseif canImport(AppKit) +/// TODO: Add `RadixSegmentedPicker` for `macOS` +#endif