Jul 18, 2021
Hi. Without knowing what version of SwiftUI you are using and where exactly you put the function it’s hard to say.
Make sure you’re declaring the function outside of the body variable.
Hi. Without knowing what version of SwiftUI you are using and where exactly you put the function it’s hard to say.
Make sure you’re declaring the function outside of the body variable.
Distraction-free reading. No ads.
Organize your knowledge with lists and highlights.
Tell your story. Find your audience.
Read member-only stories
Support writers you read most
Earn money for your writing
Listen to audio narrations
Read offline with the Medium app
I like to solve problems using Swift, make YouTube videos, and take photos. I also really enjoy a good cup of coffee.