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

# application(_:didChangeStatusBarFrame:)

Tells the delegate when the frame of the status bar has changed.

## Declaration

```swift
optional func application(_ application: UIApplication, didChangeStatusBarFrame oldStatusBarFrame: CGRect)
```

## Parameters

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

## Discussion

Discussion After calling this method, the app also posts a didChangeStatusBarFrameNotification 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(_:willChangeStatusBarFrame:)](uikit/uiapplicationdelegate/application(_:willchangestatusbarframe:).md)
- [application(_:handle:completionHandler:)](uikit/uiapplicationdelegate/application(_:handle:completionhandler:).md)
- [application(_:performFetchWithCompletionHandler:)](uikit/uiapplicationdelegate/application(_:performfetchwithcompletionhandler:).md)
- [application(_:shouldSaveApplicationState:)](uikit/uiapplicationdelegate/application(_:shouldsaveapplicationstate:).md)
