Skip to content

Latest commit

 

History

History

View Objects

The Lobe iOS-bootstrap app organizes view logic into the following objects:

  • PlayView is the superview object, which handles rendering logic for both Camera and ImagePreview modes. PlayView also formats the location of overlayed buttons and labels in the frame.
  • CameraView is a UIViewControllerRepresentable, rather than a View. It manages a view controller which sets the video feed to the view frame, described in more detail here.
  • ImagePreview displays a UIImage as selected from the ImagePicker photo picker.
  • ImagePicker is another UIViewControllerRepresentable which integrates UIImagePickerControllerDelegate, a UIKit delegate for handling selected images from an image picker. The selected image is used for ImagePreview mode.
  • PredictionLabelView defines the view for the UI label displaying prediction text and confidence percentage.