Tried this simple code, to see if hover effect is suitable for my app, but nothing happened, looks like never detects hover action, I runned in simulator and physical device (iPhone 13) Im using iOS 15.2 in Xcode 13.2.1:
import SwiftUI
struct HoverEffectView: View {
var body: some View {
Button(action: {}){
Text("Button")
.padding()
}
.contentShape(RoundedRectangle(cornerRadius: 8, style: .continuous))
.hoverEffect()
Text("Hello Word")
.padding()
.contentShape(RoundedRectangle(cornerRadius: 10,style: .continuous))
.onHover{ hover in
print("hover")
}
}
}