Show a web page
Showing a webpage from your iOS application should be done the most secure way by using SFSafariViewController. You should only use WKWebView when you want to build a custom browser.
Scan a QR code
Apple has introduced the scanning of QR codes into the camera application since iOS 11. I still see a lot of people that are not aware of this handy update and use another third party application for this basic functionality.
Support for dark mode
Apple has introduced dark mode in iOS 13. As app developer, we should make our apps support the new features as fast as possible so the users will have a nice overall experience when enabling this new feature on their iPhone.
Overnight oats
I like overnight oats a lot because it’s such a fast and healty breakfast you can take easely on the go. In the evening, it’s not more than putting the base ingredients together in a glass jar and place them in the fridge. Lately I add also a spoon of chia seeds for some extra omega-3 fats as base ingredient. This process only takes me two minutes.
Clean your mac for sale
When you want to sell your mac or prepare it for a new user in the family, you can follow the next steps.
Unit testing big legacy code bases
When you enter big legacy code bases that do not have yet a lot of unit tests, it can become a hassle to link all the relevant files for a certain refactor or fix to the test target. Because of all this hassle, it can be handy to add the following line on top of your test file. All the public and internal symbols from the app target will become ...
Handy iPhone app for intermittent fasting
In case you want to track your fasts, I highly recommend to use the app Zero. This app looks really good and does what it should for free.
Unit testing completion handler
When unit testing asynchronous code like a completion handler, we could end up with false positives in case we just add some assert in the completion block. A better strategy is shown in the following sample. We will eliminate the false positive by the use of the waitForExpectations function.
25 post articles, 4 pages.