Live activities are being registered but not appearing
Context I'm building an iOS app in which I register a live activity in a view model: @Observable class LiveActivityViewModel { private var activity: Activity<LiveActivityTimerAttributes>? // more properties func startActivity() { // .... (define some vars) // Create attributes let attributes = LiveActivityTimerAttributes() // Create initial state let state = LiveActivityTimerAttributes.ContentState( duration: offlineViewModel.state.durationSeconds, //defined earlier startDate: startDate, // defined earlier peopleOffline: offlineCountViewModel?.count ?? 0 // defined earlier ) let content = Acti
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.