Post

Replies

Boosts

Views

Activity

How to download images async for WidgetKit
I am developing Widgets for iOS and I really don't know how to download images for the widgets. The widget currently downloads an array of Objects, and every object has a URL of an image. The idea is that every object makes a SimpleEntry for the Timeline. What's the best way of achieving this? I read that Widgets shouldn't use the ObservableObject. I fetch the set of objects in the timeline provider, which seems to be what Apple recommends. But do I also download the images there and I wait until all are done to send the timeline? Any advice would be very helpful,
0
0
630
Jul ’20
resizable on an Image affects also Text behaviour
I am working on SwiftUI to make a widget and I can't figure out if I'm doing something wrong or there's a bug in SwiftUI. I have an Image that I use as a background and at the top there's a text. If I apply resizable() to the Image it also affects the behaviour of the text. The following code var body: some View {         ZStack {             VStack {                 Image(affirmation.customImageName ?? "c_0")                     .resizable()                     .scaledToFill()                     .clipped()             }                          HStack {                 Text(affirmation.title)                     .font(.body)                     .multilineTextAlignment(.leading)                     .lineLimit(nil)                 Spacer()             }             .padding(.leading, 5)             .padding(.top, 5)         }     } Creates a full background image that takes the whole view, but the Text is out of bounds as well. And the following code (without resizable()): var body: some View {         ZStack {             VStack {                 Image(affirmation.customImageName ?? "c_0")                     .scaledToFill()                     .clipped()             }                          HStack {                 Text(affirmation.title)                     .font(.body)                     .multilineTextAlignment(.leading)                     .lineLimit(nil)                 Spacer()             }             .padding(.leading, 5)             .padding(.top, 5)         }     } Creates the Image without filling the whole space but the Text is perfectly displayed. (I would have attached screenshots but it doesn't seem possible)
0
0
465
Jul ’20
ERROR ITMS-90034: Missing or invalid signature
I have been uploading new versions of my app for months and months but yesterday, when I was preparing a new Testflight build I got the following message: ERROR ITMS-90034: Missing or invalid signature This came after the archive ended up successfully. I got an email from App Store Connect with the following ITMS-90034: Missing or invalid signature - The bundle 'com.XXXX.ZZZZ' at bundle path 'Payload/YYYY.app' is not signed using an Apple submission certificate. This is weird as I have in Xcode the "Automatically manage signing" activated and nothing has changed from last build to this one. Any idea?
1
0
1.1k
Jun ’20