Trying to implement custom functionality to a SwiftUI button, keep getting a warning – Ios swift
I am trying to make a custom button where I can implement my own functionality, like in the example below: MSButton { print("hello") } Problem is, I keep getting the Expression of type '(() -> Void)?' is unused warning, and…