I\'m trying to conditionally hide a DatePicker in SwiftUI. However, I\'m having any issue with mismatched types:
DatePicker
var datePicker = DatePicker($da
Command-click the view in question and select the Make Conditional option in Beta 5. I did this on one of my views (LiftsCollectionView), and it generated the following:
if suggestedLayout.size.height > 150 { LiftsCollectionView() } else { EmptyView() }