Contents

hideObjectReticle(_:)

Hides the object selection reticle when the session is in .ready state if set to true. Example: ObjectCaptureView(session: mySession) .hideObjectReticle()

Declaration

@MainActor @preconcurrency func hideObjectReticle(_ value: Bool = true) -> ObjectCaptureView<Overlay>

Discussion

It can also be passed a value if there is a state variable controlling it:

ObjectCaptureView(session: mySession) .hideObjectReticle(shouldHideObjectReticle)

Other modifiers can be chained to build the final view: ObjectCaptureView(session: mySession) .hideObjectReticle() .transition(.opacity)