---
title: "application(_:willChangeStatusBarFrame:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiapplicationdelegate/application(_:willchangestatusbarframe:)"
---

# application(_:willChangeStatusBarFrame:)

Tells the delegate when the frame of the status bar is about to change.

## Declaration

```swift
optional func application(_ application: UIApplication, willChangeStatusBarFrame newStatusBarFrame: CGRect)
```

## Parameters

- `application`: Your singleton app object.
- `newStatusBarFrame`: The changed frame of the status bar, in screen coordinates.

## Discussion

Discussion The app calls this method when it receives a setStatusBarOrientation(_:animated:) message and is about to change the interface orientation. After calling this method, the app also posts a willChangeStatusBarFrameNotification notification to give interested objects a chance to respond to the change.

## See Also

### Deprecated

- [application(_:didRegister:)](uikit/uiapplicationdelegate/application(_:didregister:).md)
- [application(_:didReceive:)](uikit/uiapplicationdelegate/application(_:didreceive:).md)
- [application(_:didReceiveRemoteNotification:)](uikit/uiapplicationdelegate/application(_:didreceiveremotenotification:).md)
- [application(_:handleActionWithIdentifier:for:completionHandler:)](uikit/uiapplicationdelegate/application(_:handleactionwithidentifier:for:completionhandler:).md)
- [application(_:handleActionWithIdentifier:for:withResponseInfo:completionHandler:)](uikit/uiapplicationdelegate/application(_:handleactionwithidentifier:for:withresponseinfo:completionhandler:).md)
- [application(_:handleActionWithIdentifier:forRemoteNotification:completionHandler:)](uikit/uiapplicationdelegate/application(_:handleactionwithidentifier:forremotenotification:completionhandler:).md)
- [application(_:handleActionWithIdentifier:forRemoteNotification:withResponseInfo:completionHandler:)](uikit/uiapplicationdelegate/application(_:handleactionwithidentifier:forremotenotification:withresponseinfo:completionhandler:).md)
- [application(_:handleOpen:)](uikit/uiapplicationdelegate/application(_:handleopen:).md)
- [application(_:open:sourceApplication:annotation:)](uikit/uiapplicationdelegate/application(_:open:sourceapplication:annotation:).md)
- [application(_:willChangeStatusBarOrientation:duration:)](uikit/uiapplicationdelegate/application(_:willchangestatusbarorientation:duration:).md)
- [application(_:didChangeStatusBarOrientation:)](uikit/uiapplicationdelegate/application(_:didchangestatusbarorientation:).md)
- [application(_:didChangeStatusBarFrame:)](uikit/uiapplicationdelegate/application(_:didchangestatusbarframe:).md)
- [application(_:handle:completionHandler:)](uikit/uiapplicationdelegate/application(_:handle:completionhandler:).md)
- [application(_:performFetchWithCompletionHandler:)](uikit/uiapplicationdelegate/application(_:performfetchwithcompletionhandler:).md)
- [application(_:shouldSaveApplicationState:)](uikit/uiapplicationdelegate/application(_:shouldsaveapplicationstate:).md)
