Pedal

open class Pedal: UIVisualEffectView

Class that represents an option in the JVFlowerMenu

  • The image that helps let the user know what this menu item is all about. Defaults to a UIColor.blue circle if no image is passed in the initalizer. Can be re-set at any time.

    Declaration

    Swift

    public var imageView: UIImageView!
  • The UIlabel that provides a textual description to let the use know what the menu item does. This does not display anything if the andTitle part of the initalizer is nil.

    Declaration

    Swift

    public var text: UILabel!
  • ID

    In the absense of text on the text property this can be used to help identify which pedal was just selected by the user.

    Declaration

    Swift

    public let ID = UUID().uuidString
  • The default fill color for the circle image that is drawn for a Pedal that did not have an image passed to it. You can change this at any time and the circle will change colors.

    Declaration

    Swift

    public var defaultCircleFillColor: UIColor = UIColor.blue
  • Dedicated initalizer for the Pedal class

    • Parameters:
      • image: The image you want the pedal to display. A UIColor.blue circle is displayed if nil is passed.
      • title: The text to appear below the image. Displays nothing if nill is passed

    Declaration

    Swift

    public init(withImage image: UIImage?, andTitle title: String?)

    Parameters

    image

    The image you want the pedal to display. A UIColor.blue circle is displayed if nil is passed.

    title

    The text to appear below the image. Displays nothing if nill is passed