Categories
Programming Swift Xcode

Pull-Request checklist

When you are asked to be a reviewer in a Pull Request, you become accountable for. That mean, after the code will be merged to the main stream, your name will be there, so take it seriously. In this post, I would like to list various points I try to follow when I’m marked as […]

Categories
iOS Swift tvOS Xcode

WWCD 2021

WWDC 2021 is over. We got lot of new announcements for development. Here are some of my favourites sessions of the week. In App Purchase Meet StoreKit 2 Support customer and handle refunds Swift What’s new in Swift? What’s new in Foundation? Async Await Elevate your DocC documentation in Xcode Swift AttributedString Embrace Expected Failure […]

Categories
iOS Xcode

Swift Package Manager.4

This is going to be the last post of the Swift Package Manager Series. After we create a package, then make it automated, and include it in our project, we would like to make a second package. And we would like the package A to depend on packageB. What we want Package A Package B, […]

Categories
Swift Xcode

Swift Package Manager.3

Now that we know how to create a package hosted in a git repo and use in a client project, we would like to try to set up some automated build + running our unit tests. This would prevent any wrong commits, and we could be notified automatically by the system. For the example, I […]

Categories
Swift Xcode

Swift Package Manager.2

In the first post, we saw how to create a package, here we’ll see how to use our newly created package without our project. Add code to your package First, open your xcode project, and create some code. Get rid of the automatically generated code : FluentCoding_MediaControl.swift Create a new swift file: MediaControlManager.swift ⚠️ Please […]

Categories
Swift Xcode

Swift Package Manager.1

Today I would like to write about Swift Package Manager (SPM), which was introduced already several years ago, but I’ve never had a chance to try as I was mostly using Cocoa Pods for managing dependencies. I will split my experience over several posts (4), because there is a lot to write, so this one […]

Categories
iOS tvOS Xcode

Modules in Xcode

What is a module? In Xcode we have the possibility to create modules like in other IDE/programming languages. Maybe you are aware of dlls in C++, or jar file in Java. These are self contained pieces of program (compiled or not) which are usually responsible for a main concept. You can imagine a module as […]

Categories
Xcode

Unit Testing with XCode

I like to write unit tests. It gives me early feedback on my code and challenge my design. After all, unit tests are the first clients of my API. Unit tests are cheap, easy to write, easy to maintain and fast to execute, at least they should  😆 Here I want to give just couple […]