Skip to content

Commit

Permalink
fixing issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
alokc83 committed Jun 22, 2020
1 parent 7e9a086 commit 789a442
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MASegmentedControl/Class/MASegmentedControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ public class MASegmentedControl: UIControl {

layer.cornerRadius = roundedControl ? frame.height / 2 : 1.0
self.backgroundColor = self.segmentedBackGroundColor
self.layer.borderColor = self.segmentedBackGroundColor.cgColor
self.layer.borderWidth = self.customBorderWidth
self.layer.borderColor = self.customBorderColor.cgColor

setThumbView()
//if fillEqually is not true the layout is not in stackview and its set based on frames
guard !fillEqually else { return }
Expand Down

0 comments on commit 789a442

Please sign in to comment.