SwiftでUISegmentedControlのフォントと文字色を設定する方法

UISegmentedControlでフォントを設定するにはsetTitleTextAttributes。
文字色は、tintColor。
背景はbackgroundColorで良いが角丸の外まで色がつくのでclipsToBoundsを指定する必要あり。

let segmentedControl = UISegmentedControl(items: ["aaa","bbb","ccc",])

//フォント
segmentedControl.setTitleTextAttributes(NSDictionary(object: UIFont.boldSystemFontOfSize(30), forKey: NSFontAttributeName), forState: UIControlState.Normal)
        
//文字と枠の色
segmentedControl.tintColor = UIColor.yellowColor()
        
//背景
segmentedControl.backgroundColor = UIColor.redColor()
segmentedControl.layer.cornerRadius = 4 //ここは5?
segmentedControl.clipsToBounds = true