How to use a Swift library in C
A tutorial on building a C application by importing and using a Swift library, covering Swift/C interoperability and compiler flags.
Tibor Bödecs — Swift developer and technical writer sharing in-depth articles on Swift, Swift 6, server-side Swift, and frameworks like Hummingbird and Vapor, with a focus on clean architecture, type safety, and modern language features.
142 articles from this blog
A tutorial on building a C application by importing and using a Swift library, covering Swift/C interoperability and compiler flags.
Explains the differences between loadView and viewDidLoad in UIKit, focusing on memory management and weak vs. strong subviews.
A collection of 10 modern UIKit tips for iOS developers, covering dark mode support, trait collection changes, and UIButton context menus.
A beginner's guide to creating Progressive Web Apps (PWAs) for iOS, covering custom icons, splash screens, and dark mode support using SwiftHtml and Vapor.
A tutorial on creating and signing custom Swift package collections for the Swift Package Manager, including environment setup and tool installation.
A tutorial on generating HTML documents in Swift using the SwiftHtml DSL library and the Vapor web framework.
Explores upcoming developments in server-side Swift for 2022, including distributed actors, the new concurrency model, and the future of the Vapor framework.
A tutorial on implementing a thread-safe, global storage solution for shared objects in Vapor 4, addressing common pitfalls in writable services.
A tutorial on implementing tree data structures in Swift, covering structs, enums, and classes for representing hierarchical data.
A guide to binary operations and integer representation using the UInt8 type in the Swift programming language.
A detailed guide to the Bool data type in Swift, covering its creation, logical operators, and usage in conditional statements.
A guide to building command-line applications and tools using Swift, covering scripts, arguments, and process info.
A tutorial on using Swift's structured concurrency and async/await to run tasks in parallel safely and efficiently.
A beginner's guide to using Swift actors for thread-safe concurrency, preventing data races and memory issues in applications.
A guide to implementing Swift's async/await concurrency API in Vapor & Fluent to replace EventLoopFuture-based code for cleaner, more maintainable server apps.
A beginner's guide to using the new async/await APIs introduced in Swift 5.5 for writing concurrent code, including converting callback-based functions.
Explains how to create and use dynamic libraries in Swift, including method swizzling for features like SwiftUI previews.
A tutorial on writing declarative unit tests for Vapor server-side Swift applications using the Spec library.
A guide to building type-safe RESTful APIs using Swift and the Vapor framework, focusing on shared data models for full-stack Swift development.
A guide to using unsafe memory pointers in Swift for low-level memory management and C interoperability.