I'm trying to use the new uibutton configuration and it doesn't receive touches. What am I missing? Adding other buttons the "old fashioned" way work just fine.
var configuration = UIButton.Configuration.filled()
configuration.buttonSize = .large
configuration.title = "Swift"
configuration.image = UIImage(systemName: "swift")
configuration.imagePlacement = .trailing
configuration.titlePadding = 10
configuration.imagePadding = 10
configuration.contentInsets = NSDirectionalEdgeInsets(top: 10, leading: 10, bottom: 10, trailing: 10)
let tempButton = UIButton(configuration: configuration)
tempButton.addAction(UIAction(handler: { action in
print("new touched")
}), for: .touchUpInside)
self.view.addSubview(tempButton)