Post

Replies

Boosts

Views

Activity

SwiftUI Tutorial is very buggy
I have worked through most of the steps in the SwiftUI Tutorials and found them to have several faults: If you work through each step from StartingPoint project you often don't get the same thing that is in Complete project. The tutorials don't fully build upon each other, they jump to another with a bunch of new files in the next tutorial, so you don't get to see the rational of how each piece is built. They use a complex structure for build the badge with no explanation of how it is intended to work In the AnimatingViewsAndTransitions tutorial, you build up a static var called moveAndFade in HikeView that doesn't work, but the complete solution uses a var called transition that works. There seem to be steps that are left out as in ComposingComplexInterfaces which doesn't work. Apple needs to have someone go through them step by step and fix them for them to be much more useful.
1
0
464
Jul ’20
Obtaining the RGB values for a color in darkMode
I have a colorSet which includes a "Any Appearance" color and a "Dark" color. I have a need to get the hex value of both. I know how to add a .colorScheme(.dark) view modifier to cause the view to adapt to darkMode. That is not the issue. I want to display a swatch containing the darkMode color and I want to display the hex value under the swatch. No matter what I do, it always returns the hex value of the "Any Appearance" version of the color. It seems that the solution might be to use Color.resolve(in:EnvironmentValues), but I do not see how to specify the needed EnvironmentValues
1
0
152
Sep ’24