Skip to content

Instantly share code, notes, and snippets.

@GuilhE
Last active May 9, 2024 08:47
Show Gist options
  • Save GuilhE/59f84d2121a79a68cb87b85a425ba6fe to your computer and use it in GitHub Desktop.
Save GuilhE/59f84d2121a79a68cb87b85a425ba6fe to your computer and use it in GitHub Desktop.
Medium articles - What's Native
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