Hide the picker while the app is running in the background / inactive
See original GitHub issueconst appState = useAppState()
const [show, setShow] = useState(false)
useEffect(() => {
if (appState.match(/inactive|background/)) {
setShow(false)
}
}, [appState])
The state changes correctly, but hiding the picker is terminated when the app is going on to the background
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Hide the picker while the app is running in the background ...
I am thinking about writing a pure js datepicker component. All reactions.
Read more >Dynamically hiding view in SwiftUI - Stack Overflow
The simplest and most common way to hide a view is like the following: struct ContentView: View { @State private var showText =...
Read more >Windows background apps and your privacy - Microsoft Support
Stop an app from running in the background · Select Start , then select Settings > Apps > Apps & features. · Scroll...
Read more >Theme Color | Visual Studio Code Extension API
inactiveFocusBackground : List background color for the focused item when the list is inactive. An active list has keyboard focus, an inactive does...
Read more >a free SwiftUI by Example tutorial - Hacking with Swift
The Background state is used when your app isn't currently visible, so you should cut back the amount of work you do. The...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There is likely a general problem with hiding a picker without clicking on the buttons (Cancel / OK)
EDIT: This multitasking may conflict with e.g. entering a PIN code
All I had to do was put the PIN Code view in the native modal to cover the calendar, but that was my case