Close Menu
  • Home
  • AI
  • Big Data
  • Cloud Computing
  • iOS Development
  • IoT
  • IT/ Cybersecurity
  • Tech
    • Nanotechnology
    • Green Technology
    • Apple
    • Software Development
    • Software Engineering

Subscribe to Updates

Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

    What's Hot

    From Factory Floors to CyberSecurity: How Cisco Helped Me Build My Dream Career

    February 25, 2026

    Microsoft Sovereign Cloud adds governance, productivity and support for large AI models securely running even when completely disconnected 

    February 25, 2026

    New macOS 27 interface will be key to touchscreen Mac success

    February 25, 2026
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    Big Tee Tech Hub
    • Home
    • AI
    • Big Data
    • Cloud Computing
    • iOS Development
    • IoT
    • IT/ Cybersecurity
    • Tech
      • Nanotechnology
      • Green Technology
      • Apple
      • Software Development
      • Software Engineering
    Big Tee Tech Hub
    Home»iOS Development»swift – How to get iOS LiveActivity to change status to timer completed
    iOS Development

    swift – How to get iOS LiveActivity to change status to timer completed

    big tee tech hubBy big tee tech hubFebruary 25, 2026001 Min Read
    Share Facebook Twitter Pinterest Copy Link LinkedIn Tumblr Email Telegram WhatsApp
    Follow Us
    Google News Flipboard
    swift – How to get iOS LiveActivity to change status to timer completed
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link


    I’m using the timerInterval for the live activity however when the timer expires it doesn’t change its status to completed state and I couldn’t find a listener to call that

    Text(timerInterval: Date()...context.state.endDate, countsDown: true, showsHours: false)
    
    struct CompactTrailingView: View {
        let context: ActivityViewContext
    
        var body: some View {
            if context.hasExpired || context.state.isPaused {
                Text(context.formattedTime)
                    .foregroundColor(.white)
                    .font(.Widget.heading2Regular14.monospacedDigit())
                    .monospacedDigit()
                    .multilineTextAlignment(.center)
            } else {
    
                Text(timerInterval: Date()...context.state.endDate, countsDown: true, showsHours: false)
                  .frame(maxWidth: .minimum(50, 50), alignment: .leading)
                  .foregroundColor(.white)
                  .font(.Widget.heading2Regular14)
                  .monospacedDigit()
                  .multilineTextAlignment(.center)
                  .transaction { $0.animation = nil }
            }
        }
    }
    



    Source link

    change completed iOS LiveActivity status Swift Timer
    Follow on Google News Follow on Flipboard
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
    tonirufai
    big tee tech hub
    • Website

    Related Posts

    reactjs – Telegram Mini App (iOS) + Vaul Drawer: Virtual keyboard hides input or pushes drawer off-screen

    February 24, 2026

    iOS 26.3.1 Update for iPhones Coming Soon as ‘Apple Experience’ Nears

    February 23, 2026

    Why aren’t live activities showing on iOS (flutter)

    February 23, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    From Factory Floors to CyberSecurity: How Cisco Helped Me Build My Dream Career

    February 25, 2026

    Microsoft Sovereign Cloud adds governance, productivity and support for large AI models securely running even when completely disconnected 

    February 25, 2026

    New macOS 27 interface will be key to touchscreen Mac success

    February 25, 2026

    In Strategic Portfolio Management, Visibility is the Key to Unlocking AI’s Potential

    February 25, 2026
    About Us
    About Us

    Welcome To big tee tech hub. Big tee tech hub is a Professional seo tools Platform. Here we will provide you only interesting content, which you will like very much. We’re dedicated to providing you the best of seo tools, with a focus on dependability and tools. We’re working to turn our passion for seo tools into a booming online website. We hope you enjoy our seo tools as much as we enjoy offering them to you.

    Don't Miss!

    From Factory Floors to CyberSecurity: How Cisco Helped Me Build My Dream Career

    February 25, 2026

    Microsoft Sovereign Cloud adds governance, productivity and support for large AI models securely running even when completely disconnected 

    February 25, 2026

    Subscribe to Updates

    Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

      • About Us
      • Contact Us
      • Disclaimer
      • Privacy Policy
      • Terms and Conditions
      © 2026 bigteetechhub.All Right Reserved

      Type above and press Enter to search. Press Esc to cancel.