Question: I cannot figure out why this breaks it. I have an a element which uses CSS transitions to fade into a gradient background on hover. For whatever reason whenever I set the text color on hover to white the transition breaks?

```css
.social-item {
    margin-left: 0.25vw;
    padding: 0.1vw;
    transition: 0.2s;
    color: white;
}
.social-item:hover {
    background: linear-gradient(to left, #8E2DE2, #DC0486);
    color: white;
}
```

```html
<a href="https://google.com" class="social-item"><i class="fab fa-keybase"></i> Keybase</a>
```

I'm also using Bulma and Font Awesome.

Answer: 
Meanwhile here are the places (not all) where/how you can call a function

```
    init() {
        self.testFunction()     // non always good, but can
    }

    var body: some View {
        self.testFunction()            // 1)
        return VStack {
            Text("TextBox")
               .onTapGesture {
                  self.testFunction()    // 2)
               }
            Text("SecondTextBox")
        }
        .onAppear {
            self.testFunction()     // 3)
        }
        .onDisappear {
            self.testFunction()     // 4)
        }
    }

```

... and so on
An additional method:

Testing with Swift 5.8, you can also stick in a `let _ = self.testFunction()`.

eg
(this is extra-contrived so that it's possible to see the effect in Preview, because print() doesn't happen in Preview, at least for me)

```
import SwiftUI

class MyClass {
    var counter = 0
}

struct ContentView: View {
    var myClass: MyClass

    var body: some View {
        VStack {
            Text("TextBox counter = \(myClass.counter)")

            // v--------------------------------------------
            //
            let _ = self.testFunction()  // compiles happily
            //  self.testFunction()      // does not compile
            //
            // ^--------------------------------------------

            Text("TextBox counter = \(myClass.counter)")
        }
    }

    func testFunction() {
        print("This is a Test.")
        myClass.counter += 1
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView(myClass: MyClass())
    }
}

```