Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot change preferredStatusBarStyle on ComposeUIViewController #4889

Closed
chokokatana opened this issue May 28, 2024 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request ios

Comments

@chokokatana
Copy link

chokokatana commented May 28, 2024

The usual way to change the status bar style on iOS is to override the var preferredStatusBarStyle:

override var preferredStatusBarStyle: UIStatusBarStyle {
     return .lightContent
}

override func viewDidLoad() {
    super.viewDidLoad()

    setNeedsStatusBarAppearanceUpdate()
}

However, ComposeUIViewController() returns a final UIViewController and there is no way to change this value. Maybe ComposeUIViewControllerConfiguration could grow extra nullable blocks that could be implemented to provide extra customization.

@chokokatana chokokatana added enhancement New feature or request submitted labels May 28, 2024
@elijah-semyonov elijah-semyonov self-assigned this May 29, 2024
@elijah-semyonov
Copy link
Contributor

I'll forward this API, as a temporary workaround, you can wrap your ComposeUIViewController into UIViewController with overriden properties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ios
Projects
None yet
Development

No branches or pull requests

2 participants