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 more

    Declaration

    Swift

    public enum Event
  • Initializes a new ContentSizeCategoryMonitor.

    Declaration

    Swift

    public init(queue: OperationQueue = .main,
                handler: @escaping (Event) -> Void)

    Parameters

    queue

    The operation queue on which the handler executes. By default, the main operation queue is used.

    handler

    The 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()