error code snippetI need to initialize an Observed object in SwiftUI, but when i put “@ObservedObject var progress: UserProgress” it provokes an error as you can see on the photo. The error says “Return from initializer without initializing all stored properties”. What should I add to the following block of code to make it work ? Thank you in advance!
@ObservedObject var progress: UserProgress
init(selectedTab: Binding<String>) {
self._selectedTab = selectedTab
UITabBar.appearance().isHidden = true
}
I don't understand what should I put in init(selectedTab: Binding)