Blog on GitHub Pages

Swiftui Autoexpanding Scrollable Transcript View

Note: This is the result of a conversation with ChatGPT o1. We want to display a live transcript (e.g., from a live audio recording) in a SwiftUI app. The transcript is read-only text that grows over time as new lines are appended. 1. Key Requirements Expandable Height Start at 1...

Swiftui Multiple Drag Drop Types

Handling Multiple Drag-and-Drop Types in SwiftUI with Transferable SwiftUI makes it easy to implement drag-and-drop functionality with the Transferable protocol. However, handling multiple data types like String and UIImage in a single drop target requires some additional setup. In this post, we’ll explore how to create a robust solution for...

Swiftui Custom Icons

In this post, I’ll walk you through the process of adding custom icons to your SwiftUI iOS app, from obtaining the SVG files to using them efficiently in your code. Installing Inkscape and Converting SVGs to PDFs Many icon libraries provide SVGs, which are great for web development but not...

Swiftui Custom Font

Disclaimer: This blog post was the artifact of a conversation with claude.ai. Custom fonts can significantly enhance the visual appeal and branding of your iOS app. In this post, we’ll walk through the process of implementing the Figtree font in a SwiftUI app, including how to set it as the...

To Native or not to Native. If not Native, what to non-Native?

Circa Dec 2022. Dilemma: I want to create an app that is available on all platforms - Web, iOS, Android; and on all form-factors - Desktop, Laptop, Tablet, Phone, Watch. My Criteria: Easyness - Less ongoing effort. Freshness - Easy to keep clients fresh. Insightness - Unified monitoring. Options considered:...