     // MARK: View lifecycle
     override open func layoutSubviews() {
         super.layoutSubviews()
-        guard normalSegmentCount >= 1 else {
+        guard normalSegmentViewCount >= 1 else {
             return
         }
         
-        normalSegmentsView.frame = bounds
-        selectedSegmentsView.frame = bounds
+        normalSegmentViewsContainerView.frame = bounds
+        selectedSegmentViewsContainerView.frame = bounds
         
         indicatorView.frame = frameForElement(atIndex: safeIndex)
         
-        for (index, _) in normalSegments.enumerated() {
+        for (index, _) in normalSegmentViews.enumerated() {
             let frame = frameForElement(atIndex: index)
-            normalSegmentsView.subviews[index].frame = frame
-            selectedSegmentsView.subviews[index].frame = frame
+            normalSegmentViews[index].frame = frame
+            selectedSegmentViews[index].frame = frame
         }
     }
     open override func prepareForInterfaceBuilder() {

    
    private var width: CGFloat { bounds.width }
    private var height: CGFloat { bounds.height }
    private var normalSegmentCount: Int { normalSegmentsView.subviews.count }
    private var normalSegments: [UIView] { normalSegmentsView.subviews }
    /// Views in `selectedSegments` also provide accessibility traits.
    private var selectedSegments: [UIView] { selectedSegmentsView.subviews }
    private var segmentViews: [UIView] { normalSegments + selectedSegments }
    private var lastIndex: Int { segments.endIndex - 1 }
    private var totalInsetSize: CGFloat { indicatorViewInset * 2.0 }
    private var isLayoutDirectionRightToLeft: Bool {
        let layoutDirection = UIView.userInterfaceLayoutDirection(for: semanticContentAttribute)
        return layoutDirection == .rightToLeft
    }
    private static var defaultOptions: [Option] = [.backgroundColor(.appleSegmentedControlDefaultControlBackground),
                                                   .indicatorViewBackgroundColor(.appleSegmentedControlDefaultIndicatorBackground)]
    

            }
        }
        
        // MARK: Initialization
        init() {
            super.init(frame: CGRect.zero)
            completeInit()
