blog
blog copied to clipboard
🍁 What you don't know is what you haven't learned
WWDC21 - [Building a Great Mac App with SwiftUI](https://developer.apple.com/documentation/swiftui/building_a_great_mac_app_with_swiftui) - [Add Rich Graphics to Your SwiftUI App](https://developer.apple.com/documentation/swiftui/add_rich_graphics_to_your_swiftui_app)
 ## What's new in SwiftUI ### New EnvironmentValues  ### TextField inside Alert  ### List uses UICollectionView See gist https://gist.github.com/onmyway133/fc08111964984ef544a176a6e9806c18  ### ButtonStyle composition ```swift Section("Hashtags") { VStack(alignment:...
### [Setting Up Core Data with CloudKit](https://developer.apple.com/documentation/coredata/mirroring_a_core_data_store_with_cloudkit/setting_up_core_data_with_cloudkit) - Enable iCloud - Enable CloudKit and Push Notifications - Enable Remote Notifications in the Background ### [Creating a Core Data Model for...
## [Embrace Swift generics](https://developer.apple.com/videos/play/wwdc2022/110352/) > This generic pattern is really common, so there's a simpler way to express it. > Instead of writing a type parameter explicitly, we can express...
## What's new - https://www.whatsnewinswift.com - https://www.hackingwithswift.com/articles/249/whats-new-in-swift-5-7 - https://www.hackingwithswift.com/articles/247/whats-new-in-swift-5-6
## SwiftUI iOS 16 - https://bigmountainstudio.github.io/What-is-new-in-SwiftUI/ - https://swiftwithmajid.com/2022/06/07/what-is-new-in-swiftui-after-wwdc22/ - https://www.hackingwithswift.com/articles/250/whats-new-in-swiftui-for-ios-16 ## SwiftUI - https://www.hackingwithswift.com/articles/235/whats-new-in-swiftui-for-ios-15 - https://www.hackingwithswift.com/articles/221/whats-new-in-swiftui-for-ios-14 - https://talk.objc.io/collections/swiftui-layout-explained ## SwiftUI practices - 8 Common SwiftUI Mistakes – and how to...
Create `NSBitmapImageRep` with preferred size and `draw` `NSImage` onto that. Need to construct `NSBitmapImageRep` specifically instead of using convenient initializers like `NSBitmapImageRep(data:)`, `NSBitmapImageRep(cgImage:)` to avoid device dependant resolution issue. ```swift...
## Read more - https://www.objc.io/blog/2020/11/10/hstacks-child-ordering/ - https://talk.objc.io/collections/swiftui-layout-explained - https://rensbr.eu/blog/swiftui-escaping-closures/ - https://rensbr.eu/blog/swiftui-render-loop/ - https://movingparts.io/variadic-views-in-swiftui
In SwiftUI, `.popover` shows as popover on Mac and iPad, but as `.sheet` on iPhone (compact size class) We can use `minWidth, minHeight` to specify sizes on Mac and iPad....
## Core Data - [Responding to changes in a managed object context](https://www.donnywals.com/responding-to-changes-in-a-managed-object-context/) > Calling mergeChanges on a managed object context will automatically refresh any managed objects that have changed. This...