ContentSizeCategoryMonitor
public class ContentSizeCategoryMonitor : BaseNotificationMonitor
A ContentSizeCategoryMonitor instance monitors the app for changes to its
preferred content size category.
-
Encapsulates changes to the app’s preferred content size category.
See moreDeclaration
Swift
public enum Event -
Initializes a new
ContentSizeCategoryMonitor.Declaration
Swift
public init(queue: OperationQueue = .main, handler: @escaping (Event) -> Void)Parameters
queueThe operation queue on which the handler executes. By default, the main operation queue is used.
handlerThe handler to call when the app’s preferred content size category changes.
-
The font sizing option preferred by the user.
Declaration
Swift
public var preferred: UIContentSizeCategory { get } -
Declaration
Swift
override public func addNotificationObservers()
View on GitHub
Install in Dash
ContentSizeCategoryMonitor Class Reference