Posts

Post not yet marked as solved
1 Replies
1.1k Views
I've added Shortcuts support to my app but some users are reporting the Shortcuts app is losing communication with it. I was able to replicate and debug the issue. My app is crashing when trying to load 30MB. My action receives an image as input, resizes it and then uses it to perform an object detection operation. The crashes always happen before reaching the detection (like when I am resizing the image or when I am instantiating the CoreML model). Any ideas on how to troubleshoot this? I would like to know better about Shortcuts memory limits.
Posted Last updated
.
Post not yet marked as solved
0 Replies
67 Views
I have been facing poor scrolling performance when using UIVisualEffectViews in a long List on SwiftUI. Here is my implementation of the UIVisualEffectView: struct BlurView: UIViewRepresentable {     var style: UIBlurEffect.Style     func makeUIView(context: Context) -> UIVisualEffectView {         return UIVisualEffectView(effect: UIBlurEffect(style: style))     }     func updateUIView(_ uiView: UIVisualEffectView, context: Context) {         uiView.effect = UIBlurEffect(style: style)     } } extension View {     func blurEffect(style: UIBlurEffect.Style) -> some View {         background(BlurView(style: style))     } } And here is the implementation of the List: struct ListView: View {     var body: some View {         NavigationView {             List {                 Section(footer: Spacer()) {                     ForEach(People.allCases, id: \.rawValue) { person in                         HStack {                                 Text(person.name)                                     .font(.headline)                                     .multilineTextAlignment(.leading)                                     .padding(13)                                     .frame(minHeight: 50)                                     .background(                                         BlurView(style: .prominent) .mask(RoundedRectangle(cornerRadius: 15, style: .continuous)))                                     .fixedSize(horizontal: false, vertical: true)                                 Spacer()                                 Text(person.age)                                     .font(.headline)                                     .multilineTextAlignment(.leading)                                     .padding(13)                                     .frame(minHeight: 50)                                     .background(                                         BlurView(style: .prominent)         .mask(RoundedRectangle(cornerRadius: 15, style: .continuous)))                                     .fixedSize(horizontal: false, vertical: true)                         }                     }                 }             }.id(UUID())         }     } } Any ideas on how to troubleshoot this?
Posted Last updated
.