-
-
Save GuilhE/59f84d2121a79a68cb87b85a425ba6fe to your computer and use it in GitHub Desktop.
Medium articles - What's Native
This file contains 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 WhosNextShared | |
struct TimerScreen: View { | |
@StateViewModel private var viewModel = ViewModels().timerViewModel() | |
var body: some View { | |
Timer( | |
... | |
).onAppear() { | |
print("Swift object \(Unmanaged.passUnretained(viewModel).toOpaque())") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment