 extension UIView {
     func wmf_configureSubviewsForDynamicType() {
         if #available(iOS 10.0, *) {
-            if self.isKind(of: UIButton.self) {
+            if isKind(of: UIButton.self) {
                 (self as! UIButton).wmf_configureForDynamicType()
             }else if self.isKind(of: UILabel.self) {
                 (self as! UILabel).wmf_configureForDynamicType()

extension UILabel {
    fileprivate func wmf_configureForDynamicType(){
        if #available(iOS 10.0, *) {
            self.adjustsFontForContentSizeCategory = true
        }
    }
}

extension UITextField {
    fileprivate func wmf_configureForDynamicType(){
        if #available(iOS 10.0, *) {
            adjustsFontForContentSizeCategory = true
        }
    }
}
