Post

Replies

Boosts

Views

Activity

Getting different result when masking inverted view in widgets vs. inside app
Hi there, I'm trying to overlay an inverted version of a view on top of itself, and then partially masking it so that you can see underneath it. Here is the code I'm using for the masking invert view: struct BugView: View {     var body: some View {         let view = ZStack {             Color.white             Text("50%")                 .foregroundColor(.black)                 .font(.system(size: 100))                 .minimumScaleFactor(0.0001)         }         return ZStack(alignment: .center) {                 view                 view.colorInvert()                     .mask(                         GeometryReader { proxy in                             Rectangle().frame(width: proxy.size.width / 2)                         }                     )             }     } Inside my app it does as expected, showing a text that says 50% with half the view inverted. You can see a screenshot at imgur.com/E9QjBQI When I put this same view in a Widget however, it seems that the background of the inverted view doesn't get masked and bleeds over the rest of the view. You can see how it looks here: imgur.com/vI8602l I'm not sure how to accomplish the desired effect in both contexts. I also wonder if there's an easier way to do this, this seems hacky.
0
0
436
Aug ’20
App keeps getting rejected because the reviewer gets 'Cannot connect to iTunes store' error during IAP
Hello,I'm trying to submit the first version of my app, but I keep getting a rejection because the reviewer is failing to purchase my non-consumable in-app purchase. Everything works fine in sandbox mode, but something is different for them which makes it fail with an SKError.Code == .unknown and localizedDescription of 'Cannot connect to iTunes Store'. I've resubmitted many many times and asked for clarification, but I'm not getting any more info. I'm not doing anything fancy, from the screenshot they sent me it seems the SKProduct request goes through fine, but the purchase fails. The in-app purchase is showing 'Waiting for Review' in app store connect, not sure that has anything to do with it.Has anyone seen something like this? What do I do?
5
0
1.4k
May ’20