Use the #Preview macro to preview your Live Activity views directly in Xcode without running the full app.
-
Updated
Feb 17, 2026 - Swift
Use the #Preview macro to preview your Live Activity views directly in Xcode without running the full app.
NSError is the standard error handling mechanism in Objective-C, but using it defensively requires more than just passing a pointer. Learn patterns that prevent crashes and make debugging easier.
Objective-C's lightweight generics let you specify element types for collections like NSArray<NSString *>. They catch type mismatches at compile time and improve Swift bridging.
Compare @AppStorage, UserDefaults, and SwiftData for persisting data in Swift apps. Learn when each approach makes sense and how to use them effectively.
Learn how to access your app's App Delegate from anywhere in your Swift code, including from SwiftUI views.
Objective-C supports exception handling with @try/@catch, but the community settled on NSError pointers instead. Here's why.
When SwiftUI previews break, the error messages aren't always helpful. Here's how to debug them, clear caches, and get back to a working state.
Objective-C's nullability annotations tell the compiler which pointers can be nil. They catch bugs at compile time and make your code bridge to Swift cleanly.
Learn how to access photos from the camera roll in SwiftUI, including required permissions, Info.plist configuration, and using PhotosPicker for iOS 16+ or UIImagePickerController for earlier versions.
If your Live Activity renders a grey box instead of your image, the problem is almost certainly the image size. Here's how to fix it.
Add a description, image, and links to the bleepingswift topic page so that developers can more easily learn about it.
To associate your repository with the bleepingswift topic, visit your repo's landing page and select "manage topics."