Instance Property

postsFrameChangedNotifications

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

Declaration

var postsFrameChangedNotifications: Bool { get set }

Discussion

When the value of this property is true and the view’s frame rectangle changes to a new value, the view posts a frameDidChangeNotification to the default notification center. The notification is not posted when you set the frame 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 frame has changed, changing the value to true causes the view to post a frameDidChangeNotification notification immediately. This happens even when there has been no net change in the view's frame rectangle.

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

See Also

Controlling Notifications

var postsBoundsChangedNotifications: Bool

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