Fixed it.
The problem was that presentViewController does not keep the view that I was covering.
viewController.modalPresentationStyle = .overCurrentContext
did the trick.
More Related Contents:
- No Such Module ‘Parse’
- Codewars – Swift Solution (Multiply Function)
- type 'UIViewController' has no member updateTimer
- What is the “?” or “!” in front of a function in swift code
- What does it mean print(_:separator:terminator:)
- Why Choose Struct Over Class?
- Swift – Sort array of objects with multiple criteria
- How to stop a DispatchWorkItem in GCD?
- Animate drawing of a circle
- Why can’t I pass a Protocol.Type to a generic T.Type parameter?
- How do I compare two dictionaries in Swift?
- NSUserDefaults not working on Xcode beta with Watch OS2
- Swift equality operator on nested arrays
- Cancel a timed event in Swift?
- How do I check if a firebase database value exists?
- Is there a Swift alternative for NSLog(@”%s”, __PRETTY_FUNCTION__)
- TabView resets navigation stack when switching tabs
- What is the best way to determine if a string contains a character from a set in Swift
- PNG/JPEG representation from CIImage always returns nil
- Checking if an object is a given type in Swift
- Closure with generic parameters
- Include SwiftUI views in existing UIKit application
- Determining if Swift dictionary contains key and obtaining any of its values
- Sharing UserDefaults between extensions
- Swift optional inout parameters and nil
- Saving WebView to PDF returns blank image?
- Convert Firebase Firestore Timestamp to Date (Swift)?
- SwiftUI 2: the way to open view in new window
- Custom Button in SwiftUI List
- Programmatically Screenshot | Swift 3, macOS