numberOfSegments Returns the number of segments the segmented control has. Declarationvar numberOfSegments: Int { get } See AlsoManaging segmentssegmentIndex(identifiedBy:)insertSegment(action:at:animated:)insertSegment(with:at:animated:)insertSegment(withTitle:at:animated:)removeAllSegments()removeSegment(at:animated:)selectedSegmentIndexnoSegment