Documentation Archive Developer
Search

NotificationCenter Changes for Swift

NotificationCenter

Raw Value Type
From--
ToUInt

Declaration
From
class NCWidgetController : NSObject {
    class func widgetController() -> Self!
    func setHasContent(_ flag: Bool, forWidgetWithBundleIdentifier bundleID: String!)
}
To
class NCWidgetController : NSObject {
    class func widgetController() -> Self
    func setHasContent(_ flag: Bool, forWidgetWithBundleIdentifier bundleID: String)
}

Declaration
From
func setHasContent(_ flag: Bool, forWidgetWithBundleIdentifier bundleID: String!)
To
func setHasContent(_ flag: Bool, forWidgetWithBundleIdentifier bundleID: String)

Declaration
From
class func widgetController() -> Self!
To
class func widgetController() -> Self

Declaration
From
protocol NCWidgetProviding : NSObjectProtocol {
    optional func widgetPerformUpdateWithCompletionHandler(_ completionHandler: ((NCUpdateResult) -> Void)!)
    optional func widgetMarginInsetsForProposedMarginInsets(_ defaultMarginInsets: UIEdgeInsets) -> UIEdgeInsets
}
To
protocol NCWidgetProviding : NSObjectProtocol {
    optional func widgetPerformUpdateWithCompletionHandler(_ completionHandler: (NCUpdateResult) -> Void)
    optional func widgetMarginInsetsForProposedMarginInsets(_ defaultMarginInsets: UIEdgeInsets) -> UIEdgeInsets
}

Declaration
From
optional func widgetPerformUpdateWithCompletionHandler(_ completionHandler: ((NCUpdateResult) -> Void)!)
To
optional func widgetPerformUpdateWithCompletionHandler(_ completionHandler: (NCUpdateResult) -> Void)

Declaration
From
class func notificationCenterVibrancyEffect() -> UIVibrancyEffect!
To
class func notificationCenterVibrancyEffect() -> UIVibrancyEffect