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 Swift tvOS

My first SwiftUI view

Swift UI has been around for almost 2 years now, and I didn’t have much time / opportunity to play with it. But yesterday I did my first Swift UI view. This is not very advanced, as I wanted to replace a simple table view which shows text on each cell, and handles a click […]

Categories
Swift

Add vs. Adding

A few weeks ago, I was watching an online video which presented a way to generate an object following the Builder Pattern.I hear something very interesting which I believe is a convention within the Swift world on how to name some of your methods within your API objects. Add versus Adding or more generic, [Action] […]