LibraryDetailView

class LibraryDetailView : UIView

Undocumented

  • Main scroll view of the view.

    Declaration

    Swift

    @IBOutlet
    var mainScrollView: UIScrollView!
  • Header container view. It holds the headerImageView.

    Declaration

    Swift

    @IBOutlet
    var headerView: UIView!
  • The view with the image headerImage.

    Declaration

    Swift

    @IBOutlet
    var headerImageView: UIImageView!
  • The header image.

    Declaration

    Swift

    var headerImage: UIImage? { get set }
  • The segmented controller that controls which subview is visible.

    Note

    This custom segmented controller is from the package ‘TwicketSegmentedControl’

    Declaration

    Swift

    var twicketSegementedControl: TwicketSegmentedControl!
  • The subview with the views for the plant information.

    Declaration

    Swift

    @IBOutlet
    var informationView: UIView!
  • A button flowting within the header view, pinned to the top of the information view. It currently doesn’t do anything.

    Declaration

    Swift

    var floatyButton: <<error type>>
  • A table view with the general information about the plant.

    Declaration

    Swift

    var generalInfoTableView: UITableView!
  • A text view with the user’s notes on the plants.

    Declaration

    Swift

    var notesTextView: UITextView!
  • A table view with links to external sources about the plant.

    Declaration

    Swift

    var linksTableView: UITableView!
  • A value to help adjust the scroll view set its content size.

    Declaration

    Swift

    var startingYOffset: CGFloat?
  • Height of the navigation bar.

    Todo

    make private.

    Declaration

    Swift

    var navigationBarHeight: CGFloat
  • The height of the header image. After scrolling beyond this height, the image zooms in.

    Todo

    make private.

    Declaration

    Swift

    var headerImageHeight: CGFloat
  • Minimum height of the header image.

    Todo

    make private

    Declaration

    Swift

    var minHeaderImageHeight: CGFloat
  • The blur effect for the header image.

    Todo

    make private

    Declaration

    Swift

    var blurEffectView: UIVisualEffectView!
  • Update the header image with an offset.

    Declaration

    Swift

    func updateHeaderImage(offset: CGPoint)

    Parameters

    offset

    Amount to offset the image by (vertically only)

  • Set up the views.

    Todo

    make private and run during init

    Declaration

    Swift

    func setupView()
  • Set constraits for the subviews

    Todo

    make private

    Declaration

    Swift

    func setupConstraints()
  • Set up the main scroll view.

    Todo

    make private

    Declaration

    Swift

    func setupMainScrollView()
  • Set up the header view.

    Todo

    make private

    Declaration

    Swift

    func setupHeaderView()
  • Set up the header image view.

    Todo

    make private

    Declaration

    Swift

    func setupHeaderImageView()
  • Set up the segmented control that decides which information subview is visible.

    Todo

    make private

    Declaration

    Swift

    func setupTwicketSegmentedControl()
  • Set up the view of the floating button.

    Todo

    make private

    Declaration

    Swift

    func setupFloatyButtonView()
  • Set up the floating button.

    Todo

    make private

    Declaration

    Swift

    func setUpFloatlyButton()
  • Set up the information subviews (general information, notes, and sources table).

    Todo

    make private

    Declaration

    Swift

    func setupInformationSubviews()