Categories
iOS

Do-while-false?

Have you already use Do-While-False in some project ? This is of course not much applicable in Swift as we have guard let, but in C++, Java or ObjectiveC, this could be very useful in some cases. Let me past an example I found in old project. The purpose of the function here doesn’t really […]

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
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
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
iOS

TODOs

How many TODO, do you have in your code? If your code base is big, or running for couple of years, I bet you have several dozen of TODOs in comments. And most likely, they are going to stay for a while. Usually we write TODOs like this ❌ TODOs got forgotten, unless you have […]