AVPlayer iOS swiftui - ios

I am facing a problem with my App I have a video inside a NavigationView (3rd level view) when user put the video in full screen and drag up the video the screen becomes black and the video continues playing on background.
SwiftUI and Swift 5
Also i am looking for any method with SwiftUI to get into full screen video once the user Tap the button instead loading inside a new view.
Edit
I figured out the drag up problem, if some one is facing the same issue check if you disabled any orientations mode in your app in my case it fixed the issue app must be enabled in all orientations mode.

Related

Issues with buttons, clock control from previous screen overlay on current screen before refresh

In iPhone App there is an issue of buttons from previous screen appear on the current screen when the screen got loaded. they will disappear when the refresh is manually triggered. I have used white and blue colors for the App. is there any way I can avoid happening this. This is only occurs on IOS App and not on Android App

iOS Wierd Splash Screen Bug

I'm trying to get my app's splash screen to be displayed correctly instead of a black screen for a few seconds before the splash screen. I have made 3 implementations of the splash screen; issues with each are listed below:
XIB: This only displays the background color of the splash screen for a few seconds and then the rest of the splash is loaded.
XIB + Asset Catalog: For iPhone 5 running iOS 8: if the phone is currently displaying the blue navigation bar and the app is opened from a url while in the background, a black screen will be displayed before the splash.
Storyboard: On all models: this displays a black splash screen before the actual one loads.
Is this an iOS bug or am I implementing something wrong?
You might want to check the logic that is executed when the application is launched - application:didFinishLaunchingWithOptions:. If it takes significant time to execute the code in it, then this might be the problem. It is always recommended to return fast and execute any additional logic on a later moment.
It's so quite simple! I had such bug and I solved it.
You should enable "Enable Initial View Controller" to see splash screen

iOS sharing resetting app orientation

The app has portrait as default orientation within Unity3D. Using the app, nothing goes wrong and rotating the device does not affect the GUI and others.
Using native sharing we first get the sharing window with the "More..." button.
If the user presses the "More..." button while holding the device as horizontally, the new window shows as landscape and the whole app rotates behind. Doing the invert process totally screws the app. We are using Vuforia and the camera feed goes upside down before turning black.
The "More..." button seem to call for a new activity that seem to ask for the current rotation and (for some unknown reasons) also would send a message to the app about the new rotation.
Can I prevent that?

UISplitViewController asks for photo permission when it rotates

I have a project with a UITabBarViewController and a UISplitViewController as its first tab. The master UITableViewController can display a thumbnail if there is one but it's supposed to be set up so that it won't ask permission on this screen. The third tab is a photos screen that does ask permission as expected and allows the user to establish thumbnails for the first tab.
The app will never ask for photo permission on first launch when displaying the split view regardless of whether it is portrait or landscape and if it is not rotated, the photo tab will ask permission as expected. However, if the initial split view is rotated, iOS will ask for photo permission during rotation.
I don't have any code dealing with rotation and all other rotation and navigation that I have found behaves as expected. I am using Swift, Xcode 6.1 and iOS 8.1 both in the simulator and on a device.
When rotating, the app was calling viewDidLoad in the Photo tab. I moved the code that triggered the permission alert from viewDidLoad to viewWillAppear and solved the problem.

ios7 - iphone app on ipad - quitting movie player leaves rotation bar (black area) on top of main view

My app is iPhone-only but can be viewed on iPad using the 1x/2x-mode. The following behavior appears only on iPad. When I start a html5-video from the UIWebView it is automatically shown in the native movie player. When I quit the player the web view is visible again but now with a black area - like a bar - on top of the view so it looks as if the view was cropped. It is like a black overlay with the width of the web view (which indeed takes the whole screen). How do I get rid of this thing and what is the purpose of it anyway?
UPDATE:
It seems to have something to do with a "rotation frame". The main view is for portrait mode only - rotation is prohibited, but the native movie player allows landscape mode.So when I watch the video in landscape mode and tap on "done" I can see the "bar" rotate. (As documented in screenshot.)

Resources