SwiftenumSwiftUICore

enum SwiftUI.TimeDataFormatting

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 2

  1. funcstatic decode(from: Decoder) throws -> SwiftUI.ResolvableStringAttribute?
  2. varstatic var attribute: NSAttributedStringKey { get }
enum TimeDataFormatting {
    struct Resolvable<A, B> where A: SwiftUI.TimeDataSourceStorage, B: Foundation.DiscreteFormatStyle, A.Value == B.FormatInput, B.FormatOutput: SwiftUI.AttributedStringConvertible {
        enum CodingKeys {
            case source
            case format
            case secondsUpdateFrequencyBudget
        }
        let source: A
        let format: B
        let secondsUpdateFrequencyBudget: Swift.Double
        var configuration: SwiftUI.TimeDataFormatting.Configuration<A, B>
        var sizeVariant: SwiftUI.TextSizeVariant

        init(source: A, format: B, secondsUpdateFrequencyBudget: Swift.Double, sizeVariant: SwiftUI.TextSizeVariant)

        var requiredFeatures: SwiftUI.Text.ResolvedProperties.Features {
            get
        }
        var schedule: SwiftUI.TimeDataFormatting.Resolvable<A, B>? {
            get
        }

        func sizeVariant(_: SwiftUI.TextSizeVariant) -> (resolvable: SwiftUI.TimeDataFormatting.Resolvable<A, B>, exact: Swift.Bool)
        func representation(for: SwiftUI.ArchivedViewInput.DeploymentVersion) -> any SwiftUI.ResolvableStringAttributeRepresentation
        func makePlatformAttributes(resolver: inout SwiftUI.PlatformAttributeResolver)
        func entries(from: Foundation.Date, mode: SwiftUI.TimelineScheduleMode) -> Swift.AnySequence<Foundation.Date>
        func resolve(in: SwiftUI.ResolvableStringResolutionContext) -> Foundation.AttributedString?

        static func encode(_: SwiftUI.TimeDataFormatting.Resolvable<A, B>, to: any Swift.Encoder) throws
    }
    struct ComplyingFormatStyleEntries<A, B> where A: SwiftUI.TimeDataSourceStorage, B: Foundation.DiscreteFormatStyle, A.Value == B.FormatInput {
        var state: SwiftUI.TimeDataFormatting.EntriesState
        let source: A
        let format: B
    }
    struct FallbackRedactionEntries<A, B> where A: SwiftUI.TimeDataSourceStorage, B: Foundation.DiscreteFormatStyle, A.Value == B.FormatInput {
        var state: SwiftUI.TimeDataFormatting.EntriesState
        let source: A
        let format: B
        let allowedFrequency: SwiftUI.TimeDataFormatting.UpdateFrequency
    }
    enum EntriesState {
        case start(Foundation.Date)
        case previous(Foundation.Date)
        case done
    }
    struct FormatTransition<A> where A: Swift.Comparable, A: Swift.Decodable, A: Swift.Encodable, A: Swift.Hashable {
        enum CodingKeys {
            case range
            case handoff
        }
        var range: Swift.ClosedRange<A>
        var handoff: A
    }
    struct Configuration<A, B> where A: SwiftUI.TimeDataSourceStorage, B: Foundation.DiscreteFormatStyle, A.Value == B.FormatInput {
        var source: A
        var highFrequencyFormat: any Foundation.DiscreteFormatStyle
        var lowFrequencyFormat: (any Foundation.DiscreteFormatStyle)?
    }
    enum UpdateFrequency {
        enum CodingKeys {
            case high
            case second
            case minute
        }
        enum HighCodingKeys {}
        enum SecondCodingKeys {}
        enum MinuteCodingKeys {}
        case high
        case second
        case minute

        init(duration: Swift.Duration)

        static func < (_: SwiftUI.TimeDataFormatting.UpdateFrequency, _: SwiftUI.TimeDataFormatting.UpdateFrequency) -> Swift.Bool
    }
    static var attribute: __C.NSAttributedStringKey {
        get
    }

    static func decode(from: any Swift.Decoder) throws -> (any SwiftUI.ResolvableStringAttribute)?
}