Post

Replies

Boosts

Views

Activity

hoverEffect() not working
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")             }     } }
0
1
873
Feb ’22
IOS 17 mental health register in healthKit
How can I access the mental health record in healthKit to use it in my app? I am developing an application that records how the user feels in some circumstances. At WWDC23, a new iOS application was presented that records this type of data in the health application. I would like to know if it is available to use it in my applications
Replies
0
Boosts
1
Views
981
Activity
Jun ’23
hoverEffect() not working
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")             }     } }
Replies
0
Boosts
1
Views
873
Activity
Feb ’22