AWFGroupedLegendView

@interface AWFGroupedLegendView : UIView

An AWFGroupedLegendView is an subclass of UIView that displays multiple legends within a single view along with title labels for each.

  • An array of legend renderer instances used for the group.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        NSArray<NSObject<AWFLegendRenderer> *> *_Nonnull renderers;

    Swift

    var renderers: [AWFLegendRenderer] { get }
  • The amount of space, in points, between each legend item in the group.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat interitemSpacing;

    Swift

    var interitemSpacing: CGFloat { get set }
  • The text style specification to apply to legend title labels.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) AWFTextStyleSpec *labelStyle

    Swift

    var labelStyle: UnsafeMutablePointer<Int32>? { get set }
  • The edge insets to apply to each legend title label.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIEdgeInsets legendInsets;

    Swift

    var legendInsets: UIEdgeInsets { get set }
  • Initializes and returns a newly allocated grouped legend view with the specified legend renderers and titles.

    Declaration

    Objective-C

    - (nonnull instancetype)
    initWithLegendRenderers:
        (nonnull NSArray<NSObject<AWFLegendRenderer> *> *)renderers
                      title:(nonnull NSArray<NSString *> *)titles
                      frame:(CGRect)frame;

    Swift

    init(legendRenderers renderers: [AWFLegendRenderer], title titles: [String], frame: CGRect)

    Parameters

    renderers

    The legend renderers displayed in the group.

    titles

    The titles that correspond to the legends.

    frame

    The frame rectangle for the view, measured in points.

    Return Value

    An initialized grouped legend view object.