Handling revoking In-App purchase with iOS 14

I added the new revocation API provided with iOS 14 but i’m still confused about some aspect of it. I tested revoking my subscription using StoreKit Framework and I do enter in the didRevokeEntitlementsForProductIdentifiers callback. But I’m wondering if this will cover all the cases where apple actually revoke access to a user because the […]

By Jaythaking
Published
Categorised as ios, storekit, swift Tagged , ,

Can’t use private func in extension that aren’t in the same file

I have case where I often scratch my head around, let’s say I have a generic Manager class in a pod that can handle permission, and within the app, I want to be able to extend it to create more meaningful method name, aka to use with enum as parameter, to make its use more […]

By Jaythaking
Published
Categorised as design-patterns, objective-c, swift

Identify slow code to optimize build time

I’m using these Compilation Swift Flag to identify codes that slow down the compilation time: -Xfrontend -warn-long-function-bodies=100 -Xfrontend -warn-long-expression-type-checking=100 Then after building, I get warnings like these: Instance method ‘startFadePositionTitle()’ took 2702ms to type-check (limit: 500ms) for this part of the code: func startFadePositionTitle() -> CGFloat { let value: CGFloat = ((backgroundImage.frame.height/2 – contentTitle.frame.height/2) – […]

By Jaythaking
Published
Categorised as ios, swift, xcode

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq