PxUiOcrEditorScreen Class

@MainActor @objc(PxUiOcrEditorScreen) final class PxUiOcrEditorScreen

Ready-to-use OCR results editor screen. Review and correct recognised text over the page.

Initializers

NameSummary
init(result:image:languageSummary:seedText:configuration:delegate:)Creates the OCR-editor screen over a finished scan result.

Instance Properties

NameSummary
editedAttributedTextThe current edited text WITH its attributes (confidence colours on unedited spans, neutral styling on user-typed runs). Adopters that re-present the editor should hold this on dismiss and pass it back as seedText so both the edit and the colours survive re-open. The delegate’s didFinishWithText: carries only the plain string.

Instance Methods

NameSummary
update(languageSummary:)Refresh the toolbar’s displayed language summary (e.g. after a language change).
update(result:image:)Swap in a fresh result + image after a host re-scan (rebuilds the highlighted text, resets the preview, clears the indicator).
update(scanProgress:)Drive the determinate re-scan indicator (0…100).

Relationships

Inherits From

  • UIKit.UIViewController

Conforms To

  • Foundation.NSCoding
  • Foundation.NSExtensionRequestHandling
  • ObjectiveC.NSObjectProtocol
  • Swift.CVarArg
  • Swift.CustomDebugStringConvertible
  • Swift.CustomStringConvertible
  • Swift.Equatable
  • Swift.Hashable
  • Swift.Sendable
  • Swift.SendableMetatype
  • UIKit.UIActivityItemsConfigurationProviding
  • UIKit.UIAppearanceContainer
  • UIKit.UIContentContainer
  • UIKit.UIFocusEnvironment
  • UIKit.UIPasteConfigurationSupporting
  • UIKit.UIResponderStandardEditActions
  • UIKit.UIStateRestoring
  • UIKit.UITraitChangeObservable
  • UIKit.UITraitEnvironment
  • UIKit.UIUserActivityRestoring
Top