Super useful! Thanks for sharing the tip. I think I'm going to copy your extension and then perhaps use a @Binding instead of having the closure.
@markaurelius61 Жыл бұрын
Very neatly done. I like the way you tidied it up in that modifier
@mikemikina Жыл бұрын
Thanks Mark!
@vitorgomes47949 ай бұрын
First of all, thanks for sharing this content @Mike. Second, I did the same thing on my project, but there I am using a List, not a ScrollView, and my button actually are two buttons inside a VStack. I am using a GeometryReader on this two buttons VStack but when I add the variable to the List .padding modifier my buttons VStack creates a weird white stripe behind, starting in the middle of the buttons VStack and going to the bottom. Have you got this behavior?
@mikemikina9 ай бұрын
Not sure if I got this 🤔 Could you share a sample code?
@vitorgomes47949 ай бұрын
@@mikemikina Yes! How can share with you?
@mikemikina9 ай бұрын
You can create a Gist on GitHub or a regular repo. If you don't want to make it public, you can just add me to this repo. My GitHub handle is: "mikina."
@vitorgomes47949 ай бұрын
@@mikemikina It is the file pinned on my home page of GitHub. Sao Judas Tadeu Americana/Views/PrayersViews/NovenaView.swift, that's the file