Comments (11)
Are you setting any other configuration options, such as presentationContext
?
from swiftmessages.
No, I didn't. If I pass in the current view controller, will it honor that particular controller's status bar visibility?
from swiftmessages.
Actually, I don't think that should matter. It should check UIApplication.sharedApplication().statusBarHidden
before forcing the status bar to be visible.
from swiftmessages.
Agree 100%.
from swiftmessages.
Actually... it does. Strange.
https://github.com/SwiftKickMobile/SwiftMessages/blob/master/SwiftMessages/Presenter.swift#L134
This line is evaluating to true
in my application, even though the status bar is clearly hidden. Could be an iOS bug? I'll dig a bit further and post in a bit.
from swiftmessages.
It was because of WindowViewController. Added this to the bottom of WindowViewController.swift:
override func prefersStatusBarHidden() -> Bool {
return UIApplication.sharedApplication().statusBarHidden
}
Should I submit a pull request?
from swiftmessages.
No. I already released 1.1.4 with the same change. Thanks, though!
from swiftmessages.
Well, pod trunk push failed. Should be up in a moment.
from swiftmessages.
Oh wow, you were on top of that! Didn't see the commit.
Thank you!!
from swiftmessages.
π
from swiftmessages.
Hi Everybody, I solved the problem with this code but it is not a very good method.
Is there a better way?
import SwiftMessages
extension WindowViewController {
open override var prefersStatusBarHidden: Bool {
return UIApplication.shared.topMostViewController()?.prefersStatusBarHidden ?? false
}
}
Edit:
#16 solution is not in 7.0.0 version. Now I updated it and it is work.
from swiftmessages.
Related Issues (20)
- How to send swift email
- Message view is not showing sometimes after update of '9.0.6' HOT 16
- Crash during animation HOT 2
- Can you add a function to display priority based on weight? HOT 5
- Identifiable collision HOT 1
- No such module 'SwiftMessages' HOT 2
- Crash while clicking two times to hide the presenting controller HOT 3
- SwiftUI View ignoresSafeArea HOT 4
- SwiftMessages custom CenteredView extends to the screen's full height HOT 3
- How can I show multiple alert? HOT 2
- Safe area insets are not respected when setting overrideUserInterfaceStyle on a MessageView in iOS 17 HOT 3
- How do I show a message that appears above the keyboard, when the keyboard is already visible? HOT 5
- Xcode warnings in two swift files HOT 2
- window being accessed from background thread when dequeueNext is called HOT 12
- EventListeners not called ? HOT 5
- Support for SwiftUI Mac OS HOT 1
- SwiftUI message shown under navigation bar is clipped at top HOT 1
- issue with building for device HOT 1
- Breaking change released in patch release HOT 10
- why didHide Source dismissοΌ HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftmessages.