Instance Property

postsBoundsChangedNotifications

A Boolean value indicating whether the view posts notifications when its bounds rectangle changes.

Declaration

var postsBoundsChangedNotifications: Bool { get set }

Discussion

When the value of this property is true and the view’s bounds rectangle changes to a new value, the view posts a boundsDidChangeNotification to the default notification center. The notification is not posted when you set the bounds rectangle to the value it already has. The default value of this property is true.

If the value of this property is currently false and and the bounds have changed, changing the value to true causes the view to post a boundsDidChangeNotification notification immediately. This happens even when there has been no net change in the view's bounds rectangle.

The following methods and properties can trigger a frame change notification:

See Also

Controlling Notifications

var postsFrameChangedNotifications: Bool

A Boolean value indicating whether the view posts notifications when its frame rectangle changes.