EnvironmentValues

public extension EnvironmentValues
  • Set max number of items that can be displayed in a component.

    Supported components:

    • MenuSelection

    Declaration

    Swift

    var maxNumberOfItems: Int { get set }
  • Distribution of left and right content columns, when in .regular horizontal content mode. Defaults to 0.5.

    Declaration

    Swift

    var splitPercent: CGFloat? { get set }
  • The avatars border color. Default value is clear.

    Declaration

    Swift

    var avatarBorderColor: Color { get set }
  • Dimensions of the avatars border width. Default value is 0.

    Declaration

    Swift

    var avatarBorderWidth: CGFloat { get set }
  • Specifies whether the avatars are drawn as circular. Default value is true.

    Declaration

    Swift

    var isAvatarCircular: Bool { get set }
  • Dimensions of avatars size. Default value is 45x45 for group, and 16x16 for horizontal avatars.

    Declaration

    Swift

    var avatarSize: CGSize? { get set }
  • Title position of avatar stack. Default value is trailing.

    Declaration

    Swift

    var avatarsTitlePosition: AvatarStack.TextPosition { get set }
  • Layout for avatars in the stack. Default value is .grouped.

    Declaration

    Swift

    var avatarsLayout: AvatarStack.Layout { get set }
  • Max count for avatars in the stack. Default value is nil.

    Declaration

    Swift

    var avatarsMaxCount: Int? { get set }
  • Spacing for avatars in horizontal stack. Default value is -1.

    Declaration

    Swift

    var avatarsSpacing: CGFloat { get set }
  • Maximum number of the footnote icons. Default value is 0. When the count is less or equal to 0, means the number is unlimited.

    Declaration

    Swift

    var footnoteIconsMaxCount: Int { get set }
  • Specifies whether the footnoteIcons are drawn as circular. Default value is true.

    Declaration

    Swift

    var isFootnoteIconsCircular: Bool { get set }
  • Dimensions of the footnote icons spacing. Default value is -2.

    Declaration

    Swift

    var footnoteIconsSpacing: CGFloat { get set }
  • Dimensions of footnote icons. Default value is 16x16.

    Declaration

    Swift

    var footnoteIconsSize: CGSize { get set }
  • Text position for footnote icons.

    Declaration

    Swift

    var footnoteIconsTextPosition: AvatarStack.TextPosition { get set }
  • Progress view style.

    Declaration

    Swift

    var kpiProgressViewStyle: AnyKPIProgressViewStyle { get set }
  • listBackground environment value

    Declaration

    Swift

    var listBackground: Color { get set }
  • Step separator line environment value for SingleStep.

    Declaration

    Swift

    var stepLineModifier: AnyViewModifier { get set }
  • Undocumented

    Declaration

    Swift

    var numberOfLines: Int { get set }
  • Title position of loading indicator. Default value is top.

    Declaration

    Swift

    var indicatorPosition: LoadingIndicator.Layout { get set }
  • The control size of the loading indicator. Default value is .regular.

    Declaration

    Swift

    var indicatorControlSize: ControlSize { get set }
  • The tint color of loading indicator. Default value is .quaternaryLabel.

    Declaration

    Swift

    var indicatorTint: Color { get set }

Tag convenience initializers