Sponsored Link
Swift Around the Web
Swift 6
The post criticizes Swift 6's Data Race Safety feature for causing excessive code changes. Instead of helping find actual errors, it flags potential issues, slowing development.
It suggests making these checks optional and focusing on improving Swift's overall speed and simplicity. The author believes recent Swift changes prioritize syntax over productivity.
Swift/iOS: Custom Actionable Push Notification
Learn how to create interactive push notifications for your iOS app. This post teaches you how to add buttons for notifications that allow users to perform actions without opening the app.
This post uses a timer example with "Schedule Again" and "Dismiss" buttons to illustrate the process. Both local and remote notification setups are covered, along with a bonus feature for persistent reminders. All code is accessible on GitHub.
Building Swift Executables
This article explores methods for sharing Swift tools. It covers building from source, creating pre-built binaries for different platforms, and distribution strategies like GitHub Actions, Homebrew, or self-hosted options.
The best approach depends on the tool's complexity, target audience, and update frequency.
Coding
Using SwiftUI in Command Line Tools
This post demonstrates how to use SwiftUI in a command-line tool to create app icons with badges. By using ImageRenderer, you can convert SwiftUI views into images.
The author provides a step-by-step guide, including code snippets and a sample project. While SwiftUI simplifies the process, the lack of Xcode previews for command-line tools is a limitation.
Design
Exploring SwiftUI: Make SF Symbols Wiggle Wiggle
The new WiggleSymbolEffect introduced in SwiftUI to add animation to SF Symbols. The author demonstrates how to use this effect to create a visually engaging "Translate" button in their app.
The post explains different wiggle options, customization possibilities, and provides code examples. It emphasizes the importance of using this effect sparingly to maintain user experience.
Neumorphism UI in SwiftUI
Learn how to create the popular neumorphism design style using SwiftUI, which makes buttons and other elements appear 3D by using shadows and highlights.
Key points:
- Requires Xcode and iOS 13+ or macOS 10.15+.
- Create color sets for highlights, shadows, and the main color.
- Use RoundedRectangle as the base shape.
- Apply shadows for depth using the .shadow modifier.
- Differentiate between protruding and indented elements with shadow types.
Other Cool Stuff
AI Integration in Xcode: Creating Extensions with Local LLMs
Create an Xcode extension that leverages a local Large Language Model (LLM) to enhance code development. By integrating AI directly into your development environment, you can enhance coding efficiency with features like code generation, documentation, and bug fixing.
The guide covers setting up LMStudio, building the extension, and integrating LLM functionality and provides step-by-step instructions on setting up the extension and integrating it with a local LLM.
Unobtrusive and testable issue reporting
Point-Free has released a new library for unobtrusively reporting issues in Swift code as Xcode runtime warnings, breakpoints, or assertions.
This swift-issue-reporting library offers customization options and integrates seamlessly with testing frameworks. It's a replacement for the previous XCTest Dynamic Overlay library.
Common Misconceptions About SwiftUI
This article challenges common misconceptions about SwiftUI. It explains that while SwiftUI is easy to start with, mastering it requires a deeper understanding.
The author discusses topics like cross-platform development, code complexity, and SwiftUI's role beyond UI design.
In Case You Missed It
SwiftData Indexes
SwiftData now supports indexes to improve database performance. This feature was missing in earlier versions. We can define indexes for properties in the SwiftData models using the #Index macro. However, this feature is only available in iOS 18 and later.
Videos
Laying out views with ContainerRelativeFrame in SwiftUI
This video explores the ContainerRelativeFrame modifier in SwiftUI. It covers how to use it for relative sizing, layout with count and span, and potentially creating an image carousel. The author emphasizes understanding the modifier before using it in projects.
MVVM in SwiftUI and Insights into Crafting Coding Courses
This podcast features an interview with Mohammad Aam, an iOS developer and instructor. The conversation covers his journey into iOS development, the challenges of early development compared to today, and his experiences with content creation.
They discuss the evolution of iOS development, the challenges of creating and distributing online courses, and the importance of understanding your audience.