NSLog returns Void which doesn't conform to View in SwiftUI ViewBuilder. Wrapped in inline closure to avoid compilation error.