AWFGroupedLegendView
Objective-C
@interface AWFGroupedLegendView : UIView
Swift
class 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 (nonatomic, strong, readonly) 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 (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 -
The edge insets to apply to each legend title label.
Declaration
Objective-C
@property (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
renderersThe legend renderers displayed in the group.
titlesThe titles that correspond to the legends.
frameThe frame rectangle for the view, measured in points.
Return Value
An initialized grouped legend view object.
View on GitHub
AWFGroupedLegendView Class Reference