Post

Replies

Boosts

Views

Activity

Reply to AppTransaction: how to use in ObjC apps (now that we are forced to use it after the exit(173) deprecation)
Even though the chekReceipt() Swift function returns a String (-> String), the MyAppTransaction class method in the automatically generated name-Swift.h file is defined as (void). The swift function returns a string asynchronously. Since objC doesn't have async functions, it returns void and passes the string later to the completion handler. I tried to edit the name-Swift.h header to change the return type That's not going to work. Within the scope of the completion handler you can use the status string ... but you can’t return it to the calling function. Correct, and there is no way to avoid that. You need to restructure to work with this. I need to post an alert. You can only post an alert from the main thread. Calling one from the completion handler will cause a crash. In that case, in the completion handler you can dispatch to the main thread to post the alert. Pseudo-code: dispatch_async(dispatch_get_main_queue(), ^{ present_alert(message); });
Nov ’24
Reply to Using the same texture for both input & output of a fragment shader
What I'm trying to do (simplifying a bit) is blend multiple color layers using my own blending functions into a "master" texture. So what we have is a fragment shader taking in a bunch of inputs, among them the master texture for reading, and outputting to that same master texture as an output color attachment. You can do your own blending in a fragment shader without this complexity. A fragment shader can read the current value of the framebuffer ("color attachment") pixel without having to make it an input texture (on iOS). In OpenGL ES, this is defined by GL_EXT_shader_framebuffer_fetch (https://registry.khronos.org/OpenGL/extensions/EXT/EXT_shader_framebuffer_fetch.txt). In metal, I believe that you need to add [[color(0)]] to a fragment shader input - see table 5.5 of the spec at https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf - but I've never tried this myself.
Topic: Graphics & Games SubTopic: Metal Tags:
Oct ’24
Reply to Appstore Rejection - Your app's description includes the following call-to-action and/or URL that directs users to external mechanisms for purchases or subscriptions to be used in the app
Your app's description includes the following call-to-action and/or URL that directs users to external mechanisms for purchases or subscriptions to be used in the app: Website: http://abc.io That seems pretty unambiguous. Are you saying that the App Description field in App Store Connect no longer mentions that website? (If you have multiple localisations, have you checked them all?)
Oct ’24