SegmentedControl
@MainActor
open class SegmentedControl : UIControl, UIScrollViewDelegate, SegmentedAccessibilityDelegate
-
Undocumented
Declaration
Swift
@MainActor open var sectionTitles: [StringParameter] { get set }
-
Undocumented
Declaration
Swift
@MainActor open var sectionImages: [UIImage] { get set }
-
Undocumented
Declaration
Swift
@MainActor open var sectionSelectedImages: [UIImage]
-
Undocumented
Declaration
Swift
@MainActor open var sectionCount: Int { get }
-
Undocumented
Declaration
Swift
@MainActor open var indexChangedBlock: ((Int) -> Void)?
-
Undocumented
Declaration
Swift
@MainActor open var titleFormatter: ((_ segmentedControl: SegmentedControl, _ title: String, _ index: Int, _ selected: Bool) -> NSAttributedString)?
-
Undocumented
Declaration
Swift
@MainActor open var titleTextAttributes: [NSAttributedString.Key : Any]?
-
Undocumented
Declaration
Swift
@MainActor open var selectedTitleTextAttributes: [NSAttributedString.Key : Any]?
-
Undocumented
Declaration
Swift
@MainActor override open var backgroundColor: UIColor? { get set }
-
Undocumented
Declaration
Swift
@MainActor open var selectionIndicatorColor: UIColor?
-
Undocumented
Declaration
Swift
@MainActor open var selectionIndicatorBoxColor: UIColor?
-
Undocumented
Declaration
Swift
@MainActor open var verticalDividerColor: UIColor?
-
Undocumented
Declaration
Swift
@MainActor open var selectionIndicatorBoxOpacity: Float { get set }
-
Undocumented
Declaration
Swift
@MainActor open var verticalDividerWidth: CGFloat
-
Undocumented
Declaration
Swift
@MainActor open var type: SegmentedControlType
-
Undocumented
Declaration
Swift
@MainActor open var selectionStyle: SegmentedControlSelectionStyle
-
Undocumented
Declaration
Swift
@MainActor open var segmentWidthStyle: SegmentedControlSegmentWidthStyle { get set }
-
Undocumented
Declaration
Swift
@MainActor open var selectionIndicatorLocation: SegmentedControlSelectionIndicatorLocation { get set }
-
Undocumented
Declaration
Swift
@MainActor open var borderType: SegmentedControlBorderType { get set }
-
Undocumented
Declaration
Swift
@MainActor open var imagePosition: SegmentedControlImagePosition
-
Undocumented
Declaration
Swift
@MainActor open var textImageSpacing: CGFloat
-
Undocumented
Declaration
Swift
@MainActor open var borderColor: UIColor?
-
Undocumented
Declaration
Swift
@MainActor open var borderWidth: CGFloat
-
Undocumented
Declaration
Swift
@MainActor open var isUserDraggable: Bool
-
Undocumented
Declaration
Swift
@MainActor open var isTouchEnabled: Bool
-
Undocumented
Declaration
Swift
@MainActor open var isVerticalDividerEnabled: Bool
-
Undocumented
Declaration
Swift
@MainActor open var shouldStretchSegmentsToScreenSize: Bool
-
Undocumented
Declaration
Swift
@MainActor open var useSelectedTitleTextAttributesSize: Bool
-
当前选中index, -1表示不选中
Declaration
Swift
@MainActor open var selectedSegmentIndex: Int { get set }
-
Undocumented
Declaration
Swift
@MainActor open var selectionIndicatorHeight: CGFloat
-
Undocumented
Declaration
Swift
@MainActor open var selectionIndicatorEdgeInsets: UIEdgeInsets
-
Undocumented
Declaration
Swift
@MainActor open var selectionIndicatorBoxEdgeInsets: UIEdgeInsets
-
Undocumented
Declaration
Swift
@MainActor open var selectionIndicatorCornerRadius: CGFloat { get set }
-
Undocumented
Declaration
Swift
@MainActor open var selectionIndicatorBoxCornerRadius: CGFloat { get set }
-
Undocumented
Declaration
Swift
@MainActor open var contentEdgeInset: UIEdgeInsets
-
Undocumented
Declaration
Swift
@MainActor open var segmentEdgeInset: UIEdgeInsets
-
Undocumented
Declaration
Swift
@MainActor open var segmentBackgroundColor: UIColor?
-
Undocumented
Declaration
Swift
@MainActor open var segmentBackgroundOpacity: Float
-
Undocumented
Declaration
Swift
@MainActor open var segmentBackgroundCornerRadius: CGFloat
-
Undocumented
Declaration
Swift
@MainActor open var segmentBackgroundEdgeInset: UIEdgeInsets
-
Undocumented
Declaration
Swift
@MainActor open var segmentCustomBlock: ((_ segmentedControl: SegmentedControl, _ index: Int, _ rect: CGRect) -> Void)?
-
Undocumented
Declaration
Swift
@MainActor open var enlargeEdgeInset: UIEdgeInsets
-
Undocumented
Declaration
Swift
@MainActor open var shouldAnimateUserSelection: Bool
-
Undocumented
Declaration
Swift
@MainActor open var contentSize: CGSize { get }
-
Undocumented
Declaration
Swift
@MainActor open lazy var scrollView: UIScrollView { get set }
-
Undocumented
Declaration
Swift
@_spi(FW) @MainActor public var segmentWidth: CGFloat
-
Undocumented
Declaration
Swift
@_spi(FW) @MainActor public var segmentWidthsArray: [CGFloat]
-
Undocumented
Declaration
Swift
@MainActor public init(sectionTitles: [StringParameter])
-
Undocumented
Declaration
Swift
@MainActor public init(sectionImages: [UIImage], sectionSelectedImages: [UIImage])
-
Undocumented
Declaration
Swift
@MainActor public init(sectionImages: [UIImage], sectionSelectedImages: [UIImage], sectionTitles: [StringParameter])
-
Undocumented
Declaration
Swift
@MainActor override public init(frame: CGRect)
-
Undocumented
Declaration
Swift
@MainActor public required init?(coder: NSCoder)
-
设置选中index, -1表示不选中
Declaration
Swift
@MainActor open func setSelectedSegmentIndex(_ index: Int, animated: Bool)
-
Undocumented
Declaration
Swift
@MainActor override open func layoutSubviews()
-
Undocumented
Declaration
Swift
@MainActor override open var frame: CGRect { get set }
-
Undocumented
Declaration
Swift
@MainActor override open func willMove(toSuperview newSuperview: UIView?)
-
Undocumented
Declaration
Swift
@MainActor override open func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?)
-
Undocumented
Declaration
Swift
@MainActor override open func draw(_ rect: CGRect)
-
Undocumented
Declaration
Swift
@MainActor open func scrollViewDidScroll(_ scrollView: UIScrollView)
-
Undocumented
Declaration
Swift
@MainActor open func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool)
-
Undocumented
Declaration
Swift
@MainActor open func scrollViewDidEndScrollingAnimation(_ scrollView: UIScrollView)
-
Undocumented
Declaration
Swift
@MainActor open func scrollViewDidEndDecelerating(_ scrollView: UIScrollView)
-
Undocumented
Declaration
Swift
@MainActor override open var accessibilityElements: [Any]? { get set }
-
Undocumented
Declaration
Swift
@MainActor override open var isAccessibilityElement: Bool { get set }
-
Undocumented
Declaration
Swift
@MainActor override open func accessibilityElementCount() -> Int
-
Undocumented
Declaration
Swift
@MainActor override open func index(ofAccessibilityElement element: Any) -> Int
-
Undocumented
Declaration
Swift
@MainActor override open func accessibilityElement(at index: Int) -> Any?
-
Declaration
Swift
@MainActor override open func statisticalViewWillBindClick(_ containerView: UIView?) -> Bool
-
Declaration
Swift
@MainActor override open func statisticalViewVisibleIndexPaths() -> [IndexPath]?