Classes

The following classes are available globally.

  • A collection view that presents images in a horizontal paging view. Images can be edited (cropped).

    See more

    Declaration

    Swift

    class ImagePagingCollectionViewController : UICollectionViewController
  • A table view with links to additional online sources.

    Important

    This is not complete - a skeleton UITableView is provided for now.
    See more

    Declaration

    Swift

    class LinksTableViewController : UITableViewController
  • The controller for picking images from the user’s library.

    See more

    Declaration

    Swift

    class PlantAssetsPickerViewController : AssetsPickerViewController, AssetsPickerViewControllerDelegate
  • The view controller for the main table view of the Library collection. Each row is a different plant that can be selected to see detailed information. Swiping to delete is enabled. A new plant can be added through a navigation bar button (+).

    See more

    Declaration

    Swift

    class PlantLibraryTableViewController : UITableViewController
  • Undocumented

    See more

    Declaration

    Swift

    class Plant : NSObject, Codable
  • A model for a seller of plants.

    See more

    Declaration

    Swift

    class Seller : Codable
  • A manager of the fundamental plant objects for the app. It loads, saves, and adds plants to the array plants: [Plant]. This manager should be created at start-up and passed to various view controllers.

    See more

    Declaration

    Swift

    class PlantsManager
  • Undocumented

    See more

    Declaration

    Swift

    @UIApplicationMain
    class AppDelegate : UIResponder, UIApplicationDelegate
  • The custom cell for editing the information in the general information table view. It contains a segmented controller that can have multiple selections.

    See more

    Declaration

    Swift

    class EditingTableViewCell : UITableViewCell
  • A custom cell for the ImagePagingCollectionViewController. It present an image in full screen and the background turns black/white when the image is tapped. The user can pinch or double-tap to zoom and then pan around within the zoomed-in view.

    Todo

    for dark mode, always keep the background black - just hide the nav bar
    See more

    Declaration

    Swift

    class ImagePagingViewCell : UICollectionViewCell
  • A custom cell for a plant in the library table view.

    Todo

    add a configureCell(forPlant:) function.
    See more

    Declaration

    Swift

    class PlantLibraryTableViewCell : UITableViewCell