ReviewViewController
@objcMembers
public final class ReviewViewController : UIViewController
extension ReviewViewController: UIScrollViewDelegate
The ReviewViewController provides a custom review screen. The user has the option to check
for blurriness and document orientation. If the result is not satisfying, the user can either
return to the camera screen or rotate the photo by steps of 90 degrees. The photo should be
uploaded to Gini’s backend immediately after having been taken as it is safe to assume that
in most cases the photo is good enough to be processed further.
Note
Component API only.-
The object that acts as the delegate of the review view controller.
Declaration
Swift
public weak var delegate: ReviewViewControllerDelegate? -
Designated initializer for ReviewViewController
paramter giniConfiguration:
GiniConfiguration
Note
Component API only.
Declaration
Swift
public init(document: GiniVisionDocument, giniConfiguration: GiniConfiguration)Parameters
documentDocument to be reviewed
-
Returns an object initialized from data in a given unarchiver.
Warning
Not implemented.Declaration
Swift
public required init?(coder aDecoder: NSCoder) -
Undocumented
Declaration
Swift
public override func loadView() -
Called to notify the view controller that its view has just laid out its subviews.
Declaration
Swift
public override func viewDidLayoutSubviews() -
Notifies the view controller that its view was added to a view hierarchy.
Declaration
Swift
public override func viewDidAppear(_ animated: Bool)Parameters
animatedIf true, the view was added to the window using an animation.
-
Asks the delegate for the view to scale when zooming is about to occur in the scroll view.
Declaration
Swift
public func viewForZooming(in scrollView: UIScrollView) -> UIView?Parameters
scrollViewThe scroll view object displaying the content view.
Return Value
A
UIViewobject that will be scaled as a result of the zooming gesture. -
Informs the delegate that the scroll view’s zoom factor has changed.
Declaration
Swift
public func scrollViewDidZoom(_ scrollView: UIScrollView)Parameters
scrollViewThe scroll-view object whose zoom factor has changed.
View on GitHub
ReviewViewController Class Reference