Learning iOS and Swift. Day 15: Optionals are syntax sugar for Rust-like enums; presenting case study
Brief progress update on issues from the book. I present the mobile app I want to work on henceforth.
Brief progress update on issues from the book. I present the mobile app I want to work on henceforth.
I spent another evening treading through SQLite's low-level C APIs. I integrated a very naïvely written data store built with these APIs into a simple iOS GUI app. Finally, I found out how to detect dark mode on macOS using Swift APIs.
I intended to write about @AppStorage
and @SceneStorage
, but I ended up playing around with SQLite3 in C and Swift.
Describing observable objects, which act like event-driven data sources, and @EnvironmentObject
s,
which expose a given object to the entire view tree.
Today I explore basic state management using @State
, @Binding
, and @Environment
property wrappers.
In today's post I introduce the basic techniques used to translate strings within SwiftUI applications. I also present a simple component with an image placed in a circle.
Tips and tricks for synchronizing Xcode's keyboard shortcuts between devices, autoformatting Swift files in Neovim, and IntelliSense. Brief description of a prototype scene built along chapter 3 of SwiftUI Apprentice.
Following a tutorial from a book, I build a TabView with custom components and several predefined views and components from the SwiftUI framework.
In this post, I explain why I wrote almost nothing in terms of code today and why I decided to switch from UIKit to SwiftUI.
Briefly discussing structs and classes, with key differences, property and method declaration, and property observers.
Quick introduction to things you can do with Swift enumerations.
Today I explore dictionaries, the Swift-flavored unique key-value collections.
Looking at some of Swift's abstract types, such as enums, I noticed how similar they are to Rust. In this post, I also describe common operations on date and time values.
Setting up Neovim and Swift toolchain on Debian Linux. Writing a CLI program in Swift.
Learning notes from the first day learning iOS and Swift development. Reversing, uppercasing, interpolating strings in Swift.
How to leverage the speed of Vite.js to develop full stack application with Phoenix 1.6 and React, or what to do if you love Elixir, but you are also addicted to nice and shiny JS bundling tools.
This article describes quick and easy techniques to refactor commonly used SQL fragments
in Ecto.Query
, including COALESCE
, SUM
, CONCAT
, and CAST
clauses.