     }
     
     internal func setupUIElements() {
-        DispatchQueue.main.async(execute: {
-            if let appearance = self.appearance {
-                self.backgroundColor = appearance.segmentOffSelectionColour
-                self.label.font = appearance.titleOffSelectionFont
-                self.label.textColor = appearance.titleOffSelectionColour
-            }
-            self.imageView.image = self.offSelectionImage
-        })
+        if let appearance = self.appearance {
+            self.backgroundColor = appearance.segmentOffSelectionColour
+            self.label.font = appearance.titleOffSelectionFont
+            self.label.textColor = appearance.titleOffSelectionColour
+        }
+        self.imageView.image = self.offSelectionImage
     }
     
     

    public var title: String? {
        didSet {
            self.label.text = title
            setNeedsLayout()
        }
    }
    

    internal func setSelected(_ selected: Bool) {
        self.isSelected = selected
        if selected == true {
            self.backgroundColor = self.appearance?.segmentOnSelectionColour
            self.label.textColor = self.appearance?.titleOnSelectionColour
            self.imageView.image = self.onSelectionImage
        }
        else {
            self.backgroundColor = self.appearance?.segmentOffSelectionColour
            self.label.textColor = self.appearance?.titleOffSelectionColour
            self.imageView.image = self.offSelectionImage
        }
    }
    
