NACC_CleantimeRenderedImageView
@MainActor
fileprivate struct NACC_CleantimeRenderedImageView : View
A reusable View that:
- Configures an
LGV_UICleantimeImageViewBasesubclass - Waits for it to render into a
UIImage - Shows a spinner until the image is ready
-
The indenting, on either side of the displayed image.
Declaration
Swift
@MainActor private static let _sideInsetsInDisplayUnits: CGFloat -
The underlying UIKit cleantime view that does the actual drawing.
Declaration
Swift
@MainActor private let cleantimeView: LGV_UICleantimeImageViewBase -
The image that we will display once rendering is complete.
Declaration
Swift
@State @MainActor private var _displayedImage: UIImage? { get nonmutating set } -
We accept a builder closure that returns a fully-configured cleantime view.
Declaration
Swift
@MainActor init(makeCleantimeView: () -> LGV_UICleantimeImageViewBase) -
This returns the rendered image, in a ScrollView, or presents a ProgressView.
Declaration
Swift
@MainActor var body: some View { get } -
Sets up the LGV renderer and hooks the callback into our
displayImagestate.Declaration
Swift
@MainActor private func _prepareRenderer()
View on GitHub