@@ -22,9 +22,9 @@ internal final class ExampleViewController: UIViewController {
2222 subtitleLabel. attributedText = NSAttributedString (
2323 string: " Lorem ipsum dolor sit amet, pro eu epicurei oportere similique, everti postulant repudiandae ei nam. " ,
2424 attributes: generateTextStyle ( smaller: true ) )
25- subtitleLabel. textAlignment = . Center
25+ subtitleLabel. textAlignment = . center
2626 subtitleLabel. numberOfLines = 3
27- yinView. backgroundColor = UIColor . blackColor ( )
27+ yinView. backgroundColor = UIColor . black
2828 }
2929
3030 required init ( coder aDecoder: NSCoder ) {
@@ -33,7 +33,7 @@ internal final class ExampleViewController: UIViewController {
3333
3434 override func viewDidLoad( ) {
3535 super. viewDidLoad ( )
36- view. backgroundColor = UIColor . whiteColor ( )
36+ view. backgroundColor = UIColor . white
3737 view. addSubview ( titleLabel)
3838 view. addSubview ( subtitleLabel)
3939 view. addSubview ( yinView)
@@ -51,10 +51,10 @@ internal final class ExampleViewController: UIViewController {
5151 yinView. bottom2 = bottom
5252 }
5353
54- private func generateTextStyle( smaller smaller: Bool = false ) -> [ String : AnyObject ] {
54+ fileprivate func generateTextStyle( smaller: Bool = false ) -> [ String : AnyObject ] {
5555 return [
56- NSFontAttributeName: UIFont . systemFontOfSize ( smaller ? 14 : 18 ) ,
57- NSForegroundColorAttributeName: UIColor . blackColor ( )
56+ NSFontAttributeName: UIFont . systemFont ( ofSize : smaller ? 14 : 18 ) ,
57+ NSForegroundColorAttributeName: UIColor . black
5858 ]
5959 }
6060}
0 commit comments