DropletGlassTabBarItem
One segment of a DropletGlassTabBar (DroppyKit 1.30.0).
struct DropletGlassTabBarItem<ID> where ID : Hashable
Initializers
init(id:title:systemImage:showsTitle:badge:isEnabled:)
init(id: ID, title: String, systemImage: String? = nil, showsTitle: Bool = false, badge: Int? = nil, isEnabled: Bool = true)
Creates a segment.
Properties
badge
let badge: Int?
A count on the segment's shoulder; nil or 0 draws none.
id
let id: ID
The segment's identity value.
isEnabled
let isEnabled: Bool
Whether the segment can be chosen.
showsTitle
let showsTitle: Bool
Shows the title in the segment, beside the symbol if there is one. A segment without a symbol always shows its title.
systemImage
let systemImage: String?
Its SF Symbol, drawn filled where the symbol has a filled variant.
title
let title: String
Its name, sentence case: shown when showsTitle, and always what VoiceOver reads and the tooltip shows.