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: 
**Using Swift 5.3 and Xcode 12.4**

I use a little extension to debug inside the Views (VStack in the example), e.g. to inspect a geometryReader.size. It could be used to call any function in the View as follows:

**NOTE: For debugging purposes only. I don't recommend including code like this in any production code**

```
VStack {
    Text.console("Hello, World")
    Text("TEXT"
}

extension Text {
    static func console<T>(_ value: T) -> EmptyView {
        print("\(value)")
        return EmptyView()
    }
}

```

This will print "Hello, World" to the console.....
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())
    }
}

```