|
Following a YouTube post by Paul a few weeks back, I added inline grammar agreement to several information Text() messages in my app, like this:
The following log message appears for each instance:
The code works as expected except for the log noise. There are no hints to be found via web search, anywhere. Does anyone have an idea how to resolve these, or even just an explanation as to what they mean? |
|
|
|
Seems like you can fix it by indicating what part of speech this should be applied
|
|
Yes! That did the trick, thank you. (I mistyped the string interpolation, leaving out the \ in this forum message...it was correct in my code but left out the partOfSpeech argument.) Oof...spoke too soon. Adding partOfSpeach: noun did, in fact, resolve the messages I wrote about but now grammar agreement doesn't work. |
|
Indeed, there was no inflection on noun :) This one seems to work for sure
|
|
Interesting. Using interpolation notation on the noun did, indeed, both resolve the warning messages as well as activate inflection. I wouldn't have ever figured that out. Thank you! |
TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and more!
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.