All posts filed under “Uncategorized

comment 0

#54 Stubbing DispatchQueue in unit tests to run tests synchronously

The Dispatching protocol In issue #50 Synchronous Unit Tests I described an approach on how to get rid of waiting for XCTestExpectation to be fulfilled. The approach assumes hiding an asynchronous dispatch of a block/closure of code to a GCD queue behind an abstraction layer called the Dispatching protocol. In the production code you would implement a Dispatcher type like…

comments 8

#53 First steps with NFC on iOS 13

In this post I would like to point the most important things which were mentioned during Core NFC Enhancements talk on WWDC 2019. Right now I'm starting the new project where NFC knowledge will be very useful for me. Writing this post gave me a kick to learn more about the news regarding NFC from the last Apple conference. I…

comment 0

An ask

Our dear friend and a founder of – Michał, had an accident two months ago. He had a bad luck and got hit by a car while waiting on a crossing for a green light. He was supposed to get married in the summer, however life had different plans for him. After a few weeks-long coma and such an…

comments 2

#32 Errorify String

Swift.Error Swift introduces pattern of throwing errors, to propagate error conditions in a program. Errors are represented by types that conform to empty Error protocol, usually enum types. If you want to propagate an error condition in your app, you can use your AppError enum for that: The throws keyword says that a function can propagate an error, so it…

comments 7

#31 Getting started with Alexa on iOS

Happy New Year 2017! 🍾🎉 January is a special time for, as we will soon celebrate the first year of our blogging adventure 😁. Today I would like to give you a brief introduction into Amazon Alexa Voice Assistant service. You might remember our first steps with SiriKit, where we were not so happy about it 😜. Apple has…

comment 1

#1 Meaningful print debugging

Print debugging is simple and yet a powerful method. It is usually enough to toss a print() in a couple of places and a problem is recognised. As it works well for values and simple objects, when we print a more complex instance, the result is less informing.

comment 0

#0 Big Hi to the world!

We’re bunch of iOS developers from Poznań who are passionate about learning and coding in Swift. Because of that we decided to set up this blog and created a term swifting- swiftly coding in Swift!