mattyoung.github.io

HdDigitalworks.net

View on GitHub

.

import SwiftUI

struct NewView: View {
    @ViewBuilder
    var body: some View {
        if Int.random(in: 1...99) > 55 {
            Text("Hallelujah?")
        } else {
            Color.red
                .frame(width: 100, height: 100)
        }
    }
}

Editted: 2/13/2020