I can get the status bar from UIApplication in normal app by
[UIApplication sharedApplication].statusBarFrame
But we cannot access UIApplication from Extension.Is there a way to find get the statusbar in share?
You may use safeAreaLayoutGuide to calculate layout frame. eg,
viewController.view.safeAreaLayoutGuide.layoutFrame.minY
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With