Skip to content

Commit

Permalink
Fix available check
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullah-original committed Jul 15, 2024
1 parent 258da86 commit cbc35e4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Sources/ExtendedDatePicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,8 @@ fileprivate struct ExtendedDatePickerPreview: View {
}
}


@available(iOS 17, macOS 14, macCatalyst 17, *)
#Preview {
if #available(iOS 17, *) {
ExtendedDatePickerPreview()
} else {
EmptyView()
}
ExtendedDatePickerPreview()
}
#endif

0 comments on commit cbc35e4

Please sign in to comment.