InfoController

class InfoController : UIViewController

InforController to show a processed photo

  • The list of landmarks returns from the Vision API

    Declaration

    Swift

    public var landmarks: [VisionCloudLandmark]!
  • The taken image data

    Declaration

    Swift

    public var imageData: Data!
  • The HomeController instance to go back after saving the photo

    Declaration

    Swift

    public weak var homeController: HomeController!
  • The InfoModel instance of the controller

    Declaration

    Swift

    public var infoModel: InfoModel!
  • Hold the user selected texts

    Declaration

    Swift

    public var selected: [Int : WikiContentModel]
  • Initial load

    Declaration

    Swift

    override func viewDidLoad()
  • viewWillAppear

    Declaration

    Swift

    override func viewWillAppear(_ animated: Bool)
  • UICollection numberOfItemsInSection method

    Declaration

    Swift

    func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
  • UICollection cellForItemAt method

    Declaration

    Swift

    func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
  • UICollection sizeForItemAt method

    Declaration

    Swift

    func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize
  • UICollection collectionViewLayout method

    Declaration

    Swift

    func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat
  • UICollection insetForSectionAt method

    Declaration

    Swift

    func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets