You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fontForTextStyle(_ style: maximumPointSize:) doesn't use maximumPointSize parameter in the implementation. This method is used in some parts of the WordPress-iOS application and is features in the accessibility guide.
@objc public class func fontForTextStyle(_ style: UIFont.TextStyle, maximumPointSize: CGFloat = maxFontSize) -> UIFont {
let fontDescriptor = UIFontDescriptor.preferredFontDescriptor(withTextStyle: style)
return UIFont(descriptor: fontDescriptor, size: fontDescriptor.pointSize)
}
a) If we don't want to support maximumPointSize anymore, remove it from method signature.
b) If we want to support maximumPointSize change implementation to use fontDescriptor method that uses maximumPointSize.
The text was updated successfully, but these errors were encountered:
fontForTextStyle(_ style: maximumPointSize:)
doesn't use maximumPointSize parameter in the implementation. This method is used in some parts of theWordPress-iOS
application and is features in the accessibility guide.It was removed in the #294 PR.
a) If we don't want to support
maximumPointSize
anymore, remove it from method signature.b) If we want to support
maximumPointSize
change implementation to usefontDescriptor
method that usesmaximumPointSize
.The text was updated successfully, but these errors were encountered: