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 · 2 comments
Closed

Cannot change preferredStatusBarStyle on ComposeUIViewController #4889

chokokatana opened this issue May 28, 2024 · 2 comments
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

@okushnikov
Copy link
Collaborator

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

@JetBrains JetBrains locked and limited conversation to collaborators Dec 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request ios
Projects
None yet
Development

No branches or pull requests

3 participants