Home>

Here to change the UISegmentControl design,

underlineLayer.frame = CGRectMake (0, 26.5, self.view.frame.width/4, 2.5)
When

is entered, the following error is displayed and

Past questions as reference

underlineLayer.frame = CGRect (x: 0, y: 26.5, self.view.frame.width:/8, self.view.frame.height: 2.5)
When I correct it with

, I get the following error.

Can you tell me what is wrong?