We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "test", "example", "25 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @MainActor | |
| public protocol ViewModel<State>: ObservableObject { | |
| associatedtype State: Sendable | |
| var state: State { get } | |
| } | |
| public enum ViewState<D: Sendable, E: Sendable>: Sendable { | |
| case initial | |
| case loading |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| import PlaygroundSupport | |
| @MainActor | |
| final class ViewModel1: ObservableObject { | |
| @Published var count = 0 | |
| } | |
| @MainActor | |
| final class ViewModel2: ObservableObject { |