Error con Preview @FocusState Swiftui
// The workaround I found here is to wrap the preview in a ZStack, like so:
// @anarchymedes
@MainActor
struct TripInfoView_Previews: PreviewProvider {
@StateObject static var currenttrip: TripStore = TripStore.instance
static var previews: some View {
ZStack {
TripInfoView(currenttrip: currenttrip, tripPartIndex: .constant(0), signalclosure: nil, readOnlyMode: .constant(false)).environmentObject(currenttrip)
}
}
}
Shiny Shark