CarPlay - In dark mode Apple Maps displayed in light mode - apple-maps

Using iOS 13.3.1 ... noticed that in dark mode, Apple Maps are always displayed in bright light mode. I read in external forums that Apple Maps are connected with headlights. But I haven't seen any documentation about it. Is this true ? Is there any way (code) to display Apple Maps in dark mode when mode is set to dark?

Check if you have forcefully set Light mode for that specific View controller.

Related

Why is my app so different on my device vs. the simulator?

This what my app looks like running on the simulator (iPhone 8 Plus):
And this what it looks like running on my device (iPhone 7 Plus):
Why does it look like so much is missing from the app when I run it on my device? Also, a lot of the buttons/actions do not work. My data is sourced from Firestore and I am using Firebase for my app. The iOS Deployment Target is 14.4, which is accurate for my phone. I'm wondering if this could have something to do with my "Copy Bundle Resources" as this has caused me some issues in the past.
Any help/guidance on how I can troubleshoot this is much appreciated!
It Looks like your device is in dark mode. Please do changes in UI to support dark mode or you can use your app by disabling dark mode by referring this
Your device is in the dark theme whereas your simulator is in light theme,
You can assign it to work on a light theme by toggling the appearance as shown in the image below.
It seems like, You haven't provided the support for the Dark mode. To fix this issue, Either you have to give support for dark mode or disable dark mode by adding the below key in the info.plist file. It will fix your issue.
<key>UIUserInterfaceStyle</key>
<string>Light</string>
Thank you everyone for the answers. I did indeed have to disable dark mode. It looks like the key has changed to the following, as per this link: Is it possible to opt-out of dark mode on iOS 13?
<key> Appearance</key>
<string>Light</string>

How to support support dark mode for existing swift app iOS?

I am using Xcode version 11.3.1 and we have not supported the dark mode feature in the latest build. while checking the dark mode in iOS13, all the texts are not visible. It’s working in light mode. But I need to support dark mode as well.
While checking in the dark mode issue, I found solution like below to set the light mode for entire app even if the user select the dark mode:
<key>UIUserInterfaceStyle</key>
<string>Light</string>
But some of them mentioned, if we set this UIUserInterfaceStyle in plist, it will not allow placing the submit the app to App Store.
My question is, I want to support dark mode and I want to submit the app into App Store as well.
or
I need to support only light mode and I want to submit the app into the app store as well.
Note: I am using the app delegate not using SwiftUI.
if you don't set UIUserInterfaceStyle on info.plist then the App automatically enables dark mode depends on the system. If the system runs with dark mode then the app will start with dark mode.
But to show all the texts or other things you have to use the system color as the background and also for texts. OR you can use a custom color for dark mode or light mode.
To make your app look the same in the dark mode as well and it does not hinder the existing UI of the app you can use this line of code in
info.plist <key>UIUserInterfaceStyle</key>
<string>Light</string>
In this way your app will only will support only the light mode.

Turn off mirroring programmatically in iOS while airplaying to apple tv?

I am working around airplaying in iOS and I can able to do that without any issues. My issue is when mirroring is turned on i can see my mobile screen on apple tv, but I want to turn off mirroring programmatically and have to show apple tv default player and this is possible because I seen Netflix app they are doing this.
So could any one help in this?
Set usesExternalPlaybackWhileExternalScreenIsActive property to YES.
Go through the following doc
https://developer.apple.com/documentation/avfoundation/avplayer/1624255-usesexternalplaybackwhileexterna

Should I enable or disable upside down in my iOS app?

I made an iOS app with some web views an a contact page. You can navigate by using the toolbar on the bottom. I enabled landscape and, of cause portrait mode.
Should I enable upside down in my iOS app, too? Ore should i rather disable it? What is more user-friendly? What do you prefer?
If your app contains web views and contact pages then you should probably not enable upside down as it may not be user-friendly and cause inconvenience to the user while receiving calls, etc.
However, music and voice memo seems to be some situations where Apple saw fit to enable upside down. The reason is:
1.Voice Memos: Since the main microphone is on the bottom of the device, this app decides to allow this seemingly taboo orientation and kindly rotates the interface for you.
2.Music: It seems to be another case where Apple saw fit to allow an upside down orientation, but only if your device is plugged into, and playing music through, something like a car stereo. Maybe Apple accommodated for that kind of situation where the device often needs to be placed in a strange orientation in order to fit into a car setup.
Check this for reference.
There are also some apps which support upside-down texting. Go through the link for details.
So, it entirely depends on the functionality of your app to decide whether upside-down should be enabled or not. You can provide the use of your app to get more precise answers.
The upside down orientation on iOS was introduced mainly for iPad apps, where it's more common open an app with the device rotated of 180°.
So if your app support iPad you should enable this orientation. As confirmation in Apple Documentation you can read:
Important: It is strongly recommended that your iPad applications
support all orientations. This includes portrait, portrait
upside-down, landscape left and landscape right. iPad apps that
require an orientation must support both variants of that orientation.

Use User Wallpaper as Background in App iOS 7

So, I was using the Harmony Link app for iPhone with iOS 7, and a very cool visual effect occurred, my background showed up as the background to the window and it even had parallax motion. I noticed a similar occurrence in the Newsstand app.
Does anyone have any ideas on how to import the user's background into an iOS app? (Possibly even with parallax motion?)
Thanks.
I have seen other posts which do not address this question directly.
You can make your application's window transparent as described in this post: iOS 7 transparency but be careful as this is a non-public API.

Resources