I'm a senior front end React dev and I also don't care about most of the features on my phone. Notes, email, phone, text, maps and my bank. Other than that, I don't care much about other features on my phone.
SO has been hot dog garbage for years. The mods are super aggressive and the free flow of ideas seems to have died on that platform long ago.
This is what ChatGPT says. No moderator to make your life more difficult. Hope this helps.
Implementing dark mode in an iOS app involves more than just changing the background to black and the text to white. It's about creating a color scheme that reduces eye strain and battery usage, especially in low-light conditions. To achieve this, you need to adjust not only the background and text colors but also other UI elements such as buttons, images, and navigation bars.
Since you're using a WebView in your iOS app, you need to handle dark mode in both the native iOS components and the web content displayed in the WebView.
Here's a high-level approach to implementing dark mode in your app:
Native iOS components:
Set the appropriate appearance mode for your app by adding the following code to your app's Info.plist file:
xml
<key>UIUserInterfaceStyle</key>
<string>Automatic</string>
This tells your app to automatically switch between light and dark modes based on the user's system settings.
Next, use dynamic colors for native UI elements. Instead of hardcoding colors, use system-provided colors or create custom dynamic colors using UIColor's init(dynamicProvider:) method.
WebView content:
To implement dark mode for the web content displayed in the WebView, you can use CSS media queries to detect the user's preferred color scheme and apply the appropriate styles.
Add the following CSS media query to your website's CSS:
css
@media (prefers-color-scheme: dark) {
/* Add dark mode styles here /
body {
background-color: #000000;
color: #ffffff;
}
/* Other dark mode styles for other elements */
}
You can customize the colors and styles as needed for your app's design.
Test and fine-tune:
Test your app in both light and dark modes to ensure a smooth transition between the two color schemes. Adjust any colors or styles that don't look right or cause readability issues.
Remember that implementing dark mode effectively requires thoughtful design and attention to detail. Make sure to consider the specific needs of your app and its users when customizing your dark mode implementation.
People have been asking why SpaceX won't land at Starbase in Boca Chica. Simple answer, if the booster explodes it could set SpaceX back months in development. Easier and safer to test high altitude launch/recovery over the Gulf/Ocean.
Would be nice to have enough money to invest enough to make a nice living wage off of the market right now. Most people don't have that $$. Early adopters are WAY ahead of everyone else in this regard. Luckily I got in early.