Xcode: How to save colors to CoreData - SwiftUI

Опубликовано: 17 Август 2026
на канале: AverageSinner
1,232
11

In this video I will show you how you can save items in CoreData that will allow you to display colors that you picked with a ColorPicker. Therefore we create an entity with 4 attributes which will contain the corresponding values to save a color. After that we can use a ForEach loop to iterate over every item in CoreData to use the values of the saved items to fill as many rectangles as items we created.