Posts

Browse all posts.

· 5 min read

The future of server side Swift


What's going to happen with Swift on the Server in 2022? Distributed actors, Vapor 5, some predictions and wishes.

· 4 min read

Building a global storage for Vapor


This tutorial is about a shared global storage that you can implement using a common design pattern in Vapor 4.

· 6 min read

Building tree data structures in Swift


This tutorial is about showing the pros and cons of various Swift tree data structures using structs, enums and classes.

· 9 min read

Practical guide to binary operations using the UInt8 type in Swift


Introduction to the basics of signed number representation and some practical binary operation examples in Swift using UInt8.

· 6 min read

All about the Bool type in Swift


Learn everything about logical types and the Boolean algebra using the Swift programming language and some basic math.

· 5 min read

How to build better command line apps and tools using Swift?


These tips will help you to create amazing CLI tools, utility apps, server side projects or terminal scripts using the Swift language.

· 9 min read

Swift structured concurrency tutorial


Learn how to work with the Task object to perform asynchronous operations in a safe way using the new concurrency APIs in Swift.

· 9 min read

Swift actors tutorial - a beginner's guide to thread safe concurrency


Learn how to use the brand new actor model to protect your application from unwanted data-races and memory issues.

· 7 min read

Beginner's guide to the async/await concurrency API in Vapor & Fluent


Learn how to convert your existing EventLoopFuture based Vapor server app using the new async/await Swift feature.

· 5 min read

Introduction to async/await in Swift


Beginners guide to the new async/await API's in Swift 5.5. Interacting with sync code, structured concurrency, async let.

· 7 min read

Dynamic libraries and code replacements in Swift


How to load a dynamic library and use native method swizzling in Swift? This article is all about the magic behind SwiftUI previews.

· 8 min read

Declarative unit tests for Vapor


Learn how to test your server side Swift backend app in a declarative style using a lightweight library called Spec.

· 9 min read

How to design type safe RESTful APIs using Swift & Vapor?


Learn to make proper data transfer objects for CRUD operations and integrate them both into the client and server side API layer.

· 8 min read

Unsafe memory pointers in Swift


Learn how to use raw pointer references, interact with unsafe pointers and manually manage memory addresses in Swift.

· 8 min read

Memory layout in Swift


Start learning about how Swift manages, stores and references various data types and objects using a memory safe approach.

· 6 min read

How to use C libraries in Swift?


Learn how to use system libraries and call C code from Swift. Interoperability between the Swift language and C for beginners.

· 8 min read

Building static and dynamic Swift libraries using the Swift compiler


This tutorial is all about emitting various Swift binaries without the Swift package manager, but only using the Swift compiler.

· 6 min read

The Swift compiler for beginners


Learn how to build executable files using the swiftc command, meet the build pipeline, compilers and linkers under the hood.

· 2 min read

Custom working directory in Xcode


Learn how to set a custom working directory in Xcode to solve one of the most common beginner issue when using Vapor.

· 5 min read

File upload API server in Vapor 4


Learn how to build a very simple file upload API server using Vapor 4 and URLSession upload task on the client side.

· 5 min read

AJAX calls using Vapor 4


Learn how to implement Asynchronous JavaScript and XML (AJAX) calls using Leaf templates and Vapor 4 as a server.

· 6 min read

File upload using Vapor 4


Learn how to implement a basic HTML file upload form using the Leaf template engine and Vapor, all written in Swift of course.

· 5 min read

Event-driven generic hooks for Swift


In this article I am going to show you how to implement a basic event processing system for your modular Swift application.

· 9 min read

Getting started with SwiftIO


SwiftIO is an electronic circuit board that runs Swift on the bare metal. It can control sensors, displays, lights, motors and more.