Blog

Welcome and let’s explore together

Why Choose TDD Over Writing Tests After the Code?

I know that there are many different reasons why a developer might pick one approach over another when tackling any given question. But here’s my line of thinking regarding tests. There is value in writing tests after the implementation. It helps us feel more confident when the code later needs to be refactored or changed.…

StoreKit 2 Refresh Receipt

Even though StoreKit 2 keeps everything in sync automatically, the HIG still requires us to have Restore Purchase button. In Original API for In-App Purchase we’d either call SKRefreshReceiptRequest or restoreCompletedTransactions() on instance of SKPaymentQueue. In StoreKit 2 an equivalent to that would be AppStore.sync(). In regular operations, there’s no need to call sync(). StoreKit automatically…

TIL Xcode can Format to Multiple Lines

I’ve been coding a lot over the past few weeks, and much of the work was to make the code look better by formatting long lines into multiline. Like changing this: to this: It becomes tedious when needed to do a lot, so I’ve looked into automation. I believed I heard that Xcode added native…

TIL asl – Apple System Log

Today I noticed a strange behaviour in my Xcode’s console. I was testing iOS app background launch, more specifically, the case when the app is launched in background due to Watch Connectivity sendMessage method called on watchOS side. I was using “Wait for the executable to be launched” to get some console logs, but none…

TIL dynamic libraries are only partially loaded at launch in iOS

Recently I’ve stumbled on the issue that I didn’t receive a “Class is implemented in both” warning message, whereas I should’ve, because I referenced the same static library both from the app and indirectly through my custom dynamic framework. The reason was, even though I imported the dynamic framework, I never referenced its symbols. AFAIK…

Something went wrong. Please refresh the page and/or try again.


Follow My Blog

Get new content delivered directly to your inbox.

Leave a comment