So I was actually ahead of my self-imposed schedule. I was really happy with my results and wanted to fix a few things and add a feature or two. Then I hit a snag on 100 Days of SwiftUI, Project 5. I'll go briefly into it here, but follow the link below for the full explanation and hopefully some helpful insights from others.
In an effort to add more visual clues when entering words for Project 5, WordScramble, I tried to change the color of the text in the TextField
if the word being typed changed from invalid to valid and vice-versa. The TextField ignored all efforts to make any style change to the text. I could make changes to the appearance of the TextField but not to the text using such modifiers as .foregroundStyle(), .fontWeight(), and others.
From here, I'm going to add a workaround for the above problem in WordScramble, add a feature to decide whether to keep the word successfully entered or to clear it, remove all the debugging code, file a bug with Apple, and move on!
Still no word from my programming study partner.
(LU5)
No comments:
Post a Comment