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
723
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.2k
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
1k
Sep ’21
Retrain Model
In CoreML i created a image classification app with a dataset of plants ( about 1000 classes). Now I want to add new plants ( 50 new classes). Is there a way to add this new classification classes to the already trained model, with no need to retrain with all 1050 classes?. Thanks
0
0
552
Jun ’21