Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Error with preview @FocusState SwiftUI

@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)
        }
    }
}
Source by www.hackingwithswift.com #
 
PREVIOUS NEXT
Tagged: #Error #preview #SwiftUI
ADD COMMENT
Topic
Name
4+6 =