Created
June 7, 2019 20:24
-
-
Save dmytro-anokhin/68212422111ac1f44660575b35485e3e to your computer and use it in GitHub Desktop.
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
| class ImageLoader : BindableObject { | |
| enum LoadingState : Hashable { | |
| // ... | |
| } | |
| let didChange = PassthroughSubject<ImageLoader, Never>() | |
| private(set) var state: LoadingState = .initial { | |
| didSet { | |
| didChange.send(self) | |
| } | |
| } | |
| // ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment