18 posts tagged ‘SwiftUI’
Automatic Grammar Agreement
WWDC 2021: Discover how the latest updates to Foundation can help you improve your app's localization and internationalization support. Find out about the new AttributedString, designed specifically for Swift, and learn how you can use Markdown to apply style to your localized strings. Explore the grammar agreement engine, which automatically fixes up localized strings so […]
Triggering Swift Property Observers From Initializers
Natalia Panferova: In Swift, property observers such as willSet and didSet are not called when a property is set in an initializer. This is by design, as the initializer's purpose is to set up the initial state of an object, and during this phase, the object is not yet fully initialized. However, if we need […]
iOS 17.2 and iPadOS 17.2
Juli Clover (release notes, security, developer): The iOS 17.2 update includes the new Journal app, which is designed to allow iOS users to record key moments in their lives. The Journal app includes journaling suggestions, scheduled notifications, and options for adding photos, locations, and more.For the iPhone 15 Pro models, iOS 17.2 adds a Translate […]
Keyboard Cowboy 3.19
Christoffer Winterkvist (Reddit): With Keyboard Cowboy, users can automate repetitive actions, launch applications and scripts, control system settings, manipulate files and folders, and perform a wide range of actions – all without ever having to take their hands off the keyboard. […] Automating workflows by triggering them through application events, such as opening, switching, or […]
Search Suggestion Menus in AppKit
John Brayton: Even though Safari, Mail, and Finder implement search suggestion menus, there is no standard AppKit mechanism for providing them in AppKit. Popping up an NSMenu does not work because the search field cannot receive keystrokes while the menu is displayed. Interestingly there is a good mechanism for providing search suggestion menus in SwiftUI, […]
The Negative Impact of Mobile-First Web Design on Desktop
Kim Salazar, Tim Neusesser, and Nishi Chitale (via Hacker News): Many modern websites are designed with a mobile-first approach. When these pages render on desktop devices, the content can appear overly large and stretched out. Screen-covering images, large bloated text, and excessive negative space result in long pages requiring more scrolling to consume all content. […]
Apple’s Use of Swift and SwiftUI in iOS 17
Alexandre Colucci (Hacker News): Unsurprisingly, there has been a significant increase in the number of apps adopting SwiftUI this year. Notable mentions include: The Preferences app with several of its bundles (StorageSettingsUI, WallpaperSettings, MultitaskingAndGesturesSettings, ThirdPartyApplicationSettings, ActionButtonSettings, …) Several binaries related to Health (Health.app, HealthUI, MentalHealthUI, WorkoutUI, …) The Home app, which appears to have undergone […]
Unit Testing a SwiftUI Query
Helge Heß: I’ve been wondering whether I could unit test a SwiftData Query, i.e. the SwiftUI property wrapper coming w/ SwiftData (in beta6 it is actually a macro). Aka whether I could unit test a SwiftUI view. This requires setting up an execution environment for the view, but surprisingly that actually works 🙂 Here’s the […]