@@ -12,7 +12,6 @@ public enum ModalTransitionStyle: Int {
12
12
case partialCurl
13
13
}
14
14
15
-
16
15
/// Constants that specify the edges of a rectangle.
17
16
public struct RectEdge : OptionSet {
18
17
public typealias RawValue = UInt
@@ -263,6 +262,7 @@ public class ViewController: Responder {
263
262
return self . modalPresentationStyle == . formSheet
264
263
}
265
264
265
+ /// Posted when a split view controller is expanded or collapsed.
266
266
public class var showDetailTargetDidChangeNotification : NSNotification . Name {
267
267
NSNotification . Name ( rawValue: " UIViewControllerShowDetailTargetDidChangeNotification " )
268
268
}
@@ -292,22 +292,29 @@ public class ViewController: Responder {
292
292
}
293
293
294
294
extension ViewController : ContentContainer {
295
+ /// Notifies the container that the size of its view is about to change.
295
296
public func willTransition( to: Size ,
296
297
with coodinator: ViewControllerTransitionCoordinator ) {
297
298
}
298
299
300
+ /// Notifies the container that its trait collection changed.
299
301
public func willTransition( to: TraitCollection ,
300
302
with coordinator: ViewControllerTransitionCoordinator ) {
301
303
}
302
304
305
+ /// Returns the size of the specified child view controller’s content.
303
306
public func size( forChildContentContainer container: ContentContainer ,
304
307
withParentContainerSize parentSize: Size ) -> Size {
305
308
return . zero
306
309
}
307
310
311
+ /// Notifies an interested controller that the preferred content size of one
312
+ /// of its children changed.
308
313
public func preferredContentSizeDidChange( forChildContentContainer container: ContentContainer ) {
309
314
}
310
315
316
+ /// Notifies the container that a child view controller was resized using auto
317
+ /// layout.
311
318
public func systemLayoutFittingSizeDidChange( forChildContentContainer container: ContentContainer ) {
312
319
}
313
320
}
0 commit comments