GraphSegment

internal final class GraphSegment : UIView

Apple’s GraphSegment

  • All values for this segments.

    Declaration

    Swift

    private(set) var dataPoints: [double3] {
      get
      }
  • Maximum capacity of the segment.

    Declaration

    Swift

    internal var capacity: Int
  • If the maximum capacity is reached.

    Declaration

    Swift

    internal var isFull: Bool { get }
  • Init with starting values and the ranges.

    Declaration

    Swift

    internal init(startPoint: double3, valueRanges: [ClosedRange<Double>])
  • Returns an object initialized from data in a given unarchiver.

    Declaration

    Swift

    required internal init?(coder aDecoder: NSCoder)
  • Add new values to the graph.

    Declaration

    Swift

    internal func add(_ values: double3, colors: [UIColor])
  • Draws the receiver’s image within the passed-in rectangle.

    Declaration

    Swift

    override func draw(_ rect: CGRect)