//This is the function which contain my button action programatically
func didSetCategory(info: FitnessCenterModel) {
myButton.addTarget(self, action: #selector(Function(d: info)), for: .touchUpInside)
}
// my selector function for the button target
func Function(d:FitnessCenterModel ) {
print(info)
}
but i am not able to pass as the compiler is throwing an error "Argument of '#selector' does not refer to an '@Objc' method, property, or initialzer