From 05db87db9b69f989c5de0aad5efb0436cadc8cba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Guill=C3=A9n?= Date: Mon, 19 Mar 2018 20:41:37 +0100 Subject: [PATCH] Fixed a compilation error on Swift 3 The property UIFontWeightMedium is no longer available and has been replaced by UIFont.Weight.medium --- TwicketSegmentedControl/TwicketSegmentedControl.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TwicketSegmentedControl/TwicketSegmentedControl.swift b/TwicketSegmentedControl/TwicketSegmentedControl.swift index 030f3b2..49446b8 100644 --- a/TwicketSegmentedControl/TwicketSegmentedControl.swift +++ b/TwicketSegmentedControl/TwicketSegmentedControl.swift @@ -88,7 +88,7 @@ open class TwicketSegmentedControl: UIControl { } } - open var font: UIFont = UIFont.systemFont(ofSize: 15, weight: UIFontWeightMedium) { + open var font: UIFont = UIFont.systemFont(ofSize: 15, weight: UIFont.Weight.medium) { didSet { updateLabelsFont(with: font) }