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
870
Feb ’22
Previews Locale - not working
Try to modify Locale in previews, to see how it looks but it didn't work, Code: import SwiftUI struct SettingsView: View {     var body: some View {         VStack {             Text("Current Locale : (Locale.current.identifier)")             Text("Hoy es: (dateToString(Date()))")         }     } } struct SettingsView_Previews: PreviewProvider {     static var previews: some View {             SettingsView()                 .environment(.locale, Locale(identifier: "es_AR"))             SettingsView()                 .environment(.locale, Locale(identifier: "fr"))     } }
2
0
1.3k
Oct ’21
Xcode 13 - make system run out of application memory
After I upgrade to Xcode - 13 I have this problem, every time I try to generate preview in any file, Xcode take more than a minute and the system runs out off application memory: then system become unstable and never recover even closing Xcode, I try restarting but the system hangs and need to make a force shutdown. I reinstalled Xcode more than once and still have the issue. Im running on intel MacBook Pro 2020 BigSur 11.6
1
0
1.3k
Oct ’21
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
817
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
870
Activity
Feb ’22
Previews Locale - not working
Try to modify Locale in previews, to see how it looks but it didn't work, Code: import SwiftUI struct SettingsView: View {     var body: some View {         VStack {             Text("Current Locale : (Locale.current.identifier)")             Text("Hoy es: (dateToString(Date()))")         }     } } struct SettingsView_Previews: PreviewProvider {     static var previews: some View {             SettingsView()                 .environment(.locale, Locale(identifier: "es_AR"))             SettingsView()                 .environment(.locale, Locale(identifier: "fr"))     } }
Replies
2
Boosts
0
Views
1.3k
Activity
Oct ’21
Xcode 13 - make system run out of application memory
After I upgrade to Xcode - 13 I have this problem, every time I try to generate preview in any file, Xcode take more than a minute and the system runs out off application memory: then system become unstable and never recover even closing Xcode, I try restarting but the system hangs and need to make a force shutdown. I reinstalled Xcode more than once and still have the issue. Im running on intel MacBook Pro 2020 BigSur 11.6
Replies
1
Boosts
0
Views
1.3k
Activity
Oct ’21