// SPDX-License-Identifier: MIT // Copyright (c) 2026 Oscar Canton and SwiftUI Blocks contributors import SwiftUI /// Page dots where the current one stretches into a capsule. Bind `current` to a paged `TabView` or a scroll position. /// /// With Reduce Motion on, the capsule changes without animating. struct PageDotsIndicator: View { let count: Int let current: Int var tint: Color = .primary @ScaledMetric(relativeTo: .caption) private var dotSize = 8.0 @Environment(\.accessibilityReduceMotion) private var reduceMotion var body: some View { HStack(spacing: dotSize) { ForEach(0..