on-internet
← Community

Live activities are being registered but not appearing

Stack Overflow ·

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

Comments

Sign in or sign up to comment and upvote.

No comments yet.