SwiftUI Tip
You can add a custom preview to your context menu using the 'preview' parameter.
Perfect for showing more details before the user chooses an action.
source
You can add a custom preview to your context menu using the 'preview' parameter.
Perfect for showing more details before the user chooses an action.
source
🍾3
How to optimize videos for iOS
This article is a practical guide for iOS developers and content creators on how to optimize videos for iOS, from capture to playback.
It covers choosing the right formats (MP4 vs MOV) and codecs (H.264 vs HEVC), setting appropriate resolutions and frame rates, and using Swift/AVFoundation code snippets to handle conversion and device-specific settings.
It also walks through camera configuration, compression and editing tools, and best practices for managing heat, battery life, and storage so that videos load quickly and play smoothly across different iPhones and iPads.
P.S. Since the article was published, AV1 has become more relevant on newer Apple devices, but H.264 and HEVC still remain the primary codecs for broad iOS compatibility.
This article is a practical guide for iOS developers and content creators on how to optimize videos for iOS, from capture to playback.
It covers choosing the right formats (MP4 vs MOV) and codecs (H.264 vs HEVC), setting appropriate resolutions and frame rates, and using Swift/AVFoundation code snippets to handle conversion and device-specific settings.
It also walks through camera configuration, compression and editing tools, and best practices for managing heat, battery life, and storage so that videos load quickly and play smoothly across different iPhones and iPads.
P.S. Since the article was published, AV1 has become more relevant on newer Apple devices, but H.264 and HEVC still remain the primary codecs for broad iOS compatibility.
🍾2🤪1
Implementing Non-Consumable In-App Purchases with StoreKit 2
Learn how to start selling Non-Consumable In-App Purchases in your SwiftUI app.
This article explains how to implement a non-consumable In-App Purchase in a SwiftUI app using StoreKit 2, from local StoreKit configuration to showing a product in the UI.
It walks through testing purchases on device, setting up the product in App Store Connect, switching from local config to live products, and verifying everything via TestFlight so you can reliably sell a one-time feature unlock.
Learn how to start selling Non-Consumable In-App Purchases in your SwiftUI app.
This article explains how to implement a non-consumable In-App Purchase in a SwiftUI app using StoreKit 2, from local StoreKit configuration to showing a product in the UI.
It walks through testing purchases on device, setting up the product in App Store Connect, switching from local config to live products, and verifying everything via TestFlight so you can reliably sell a one-time feature unlock.