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

    ios – Circular tick-ring briefly rotates backward once after app returns from background

    May 18, 2026

    Apple’s Siri revamp could include auto-deleting chats

    May 18, 2026

    what technique may be able to create super-high laser intensities? – Physics World

    May 18, 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»ios – Circular tick-ring briefly rotates backward once after app returns from background
    iOS Development

    ios – Circular tick-ring briefly rotates backward once after app returns from background

    big tee tech hubBy big tee tech hubMay 18, 2026002 Mins Read
    Share Facebook Twitter Pinterest Copy Link LinkedIn Tumblr Email Telegram WhatsApp
    Follow Us
    Google News Flipboard
    ios – Circular tick-ring briefly rotates backward once after app returns from background
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link


    I have a SwiftUI iOS app with a “work time” screen.

    On that screen, a circular ring with 60 tick marks rotates continuously while tracking is running. The app itself no longer crashes, but I still have one visual glitch:

    • After the app is in background for a while and I return to foreground,
    • the ring briefly moves a small step in the opposite direction once,
    • then continues rotating normally clockwise.

    No runtime error is shown, and this is a visual issue only.

    Expected result: The ring should continue smoothly in the same direction after foreground resume, with no reverse step.

    Actual result: One short reverse “tick” appears right after foreground resume, then normal rotation resumes.

    I tested several approaches and the reverse step still happens:

    1. withAnimation(.linear(...).repeatForever) + restart on foreground.
    2. Timeline-based rotation using TimelineView with both .animation and .periodic schedules.
    3. Rotation angle with and without modulo wrapping.
    4. Rotation from wall-clock time and from monotonic uptime.
    5. Rendering tweaks (Canvas rotation in geometry vs rotationEffect, with/without warmup delays).
    6. Different ring visuals (uniform ticks vs long/short hour-like ticks).

    The issue is still reproducible.

    import SwiftUI
    
    struct ReproClockView: View {
        @Environment(\.scenePhase) private var scenePhase
    
        private let tickCount = 60
        private let rotationDuration: Double = 120
    
        @State private var rotationDegrees: Double = 0
        @State private var hasAppeared = false
    
        var body: some View {
            ZStack {
                Canvas { context, size in
                    let center = CGPoint(x: size.width / 2, y: size.height / 2)
                    let radius = min(size.width, size.height) / 2 - 8
    
                    for index in 0..

    What is the correct SwiftUI approach to implement a continuously rotating ring that remains direction-stable across background/foreground transitions (no one-frame reverse step)?

    If possible, please suggest a pattern that is robust on current iOS versions and avoids visual artifacts when scene phase changes.



    Source link

    app background briefly Circular iOS returns rotates tickring
    Follow on Google News Follow on Flipboard
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
    tonirufai
    big tee tech hub
    • Website

    Related Posts

    xcode – What is the right version combination for navigation compose that works both on Android and iOS?

    May 17, 2026

    swift – How Do I Replicate the Exact Native iMessage Contact/Profile Transition Animation in iOS?

    May 16, 2026

    ios – React Native expo-video clip plays for 1 second then freezes only on European devices

    May 15, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    ios – Circular tick-ring briefly rotates backward once after app returns from background

    May 18, 2026

    Apple’s Siri revamp could include auto-deleting chats

    May 18, 2026

    what technique may be able to create super-high laser intensities? – Physics World

    May 18, 2026

    AWS adds Advanced Prompt Optimization tool to Bedrock

    May 17, 2026
    Timer Code
    15 Second Timer for Articles
    20
    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!

    ios – Circular tick-ring briefly rotates backward once after app returns from background

    May 18, 2026

    Apple’s Siri revamp could include auto-deleting chats

    May 18, 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.