PlantLibraryTableViewCell
class PlantLibraryTableViewCell : UITableViewCell
A custom cell for a plant in the library table view.
Todo
add aconfigureCell(forPlant:)
function.
-
The image view for the icon.
Declaration
Swift
var iconImageView: UIImageView!
-
The label for the scientific name.
Declaration
Swift
var scientificNameLabel: UILabel!
-
The label for the common name.
Declaration
Swift
var commonNameLabel: UILabel!
-
The scientific name of the plant.
Todo
remove from this viewDeclaration
Swift
var scientificName: String? { get set }
-
The scientific name of the plant.
Todo
remove from this viewDeclaration
Swift
var commonName: String? { get set }
-
Undocumented
Declaration
Swift
override func awakeFromNib()
-
Undocumented
Declaration
Swift
override func setSelected(_ selected: Bool, animated: Bool)
-
Set up the cell subviews.
Todo
make private and run during initDeclaration
Swift
func setupCell()
-
Assign constraints to organize the subviews.
Todo
make privateDeclaration
Swift
func setupConstraints()
-
Sets the scientific label depending on if the plant has one.
Declaration
Swift
func setScientificLabel()
-
Set up some smaller details of the cell.
Todo
make private and run during initDeclaration
Swift
func setupCellView()