Skip to content

Commit bb0c04f

Browse files
Mark Pospeselmpospese
authored andcommitted
[CM-716] Change extension function to public because it cannot be overridden
1 parent ee9faed commit bb0c04f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/YMatterType/Extensions/UIKit/UITraitCollection+breakpoint.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extension UITraitCollection {
2525
/// - Parameter traitCollection: A trait collection that you want to compare to the current trait collection.
2626
/// - Returns: Returns a Boolean value indicating whether changing between the
2727
/// specified and current trait collections could affect breakpoints.
28-
open func hasDifferentBreakpoint(comparedTo traitCollection: UITraitCollection?) -> Bool {
28+
public func hasDifferentBreakpoint(comparedTo traitCollection: UITraitCollection?) -> Bool {
2929
horizontalSizeClass != traitCollection?.horizontalSizeClass ||
3030
verticalSizeClass != traitCollection?.verticalSizeClass
3131
}

Sources/YMatterType/Extensions/UIKit/UITraitCollection+fontAppearance.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extension UITraitCollection {
2222
/// - Parameter traitCollection: A trait collection that you want to compare to the current trait collection.
2323
/// - Returns: Returns a Boolean value indicating whether changing between the
2424
/// specified and current trait collections would affect fonts.
25-
open func hasDifferentFontAppearance(comparedTo traitCollection: UITraitCollection?) -> Bool {
25+
public func hasDifferentFontAppearance(comparedTo traitCollection: UITraitCollection?) -> Bool {
2626
preferredContentSizeCategory != traitCollection?.preferredContentSizeCategory ||
2727
legibilityWeight != traitCollection?.legibilityWeight
2828
}

0 commit comments

Comments
 (0)