Post

Replies

Boosts

Views

Activity

The App Store SF symbols do not display in SwiftUI
I'm trying to use the SF symbol named "app-store-circle" in an app created with SwiftUI. It does not display. All other SF symbols work fine. Is there some kind of restriction on the use of the App Store icons? Image(systemName: "app-store-circle") Xcode Version 14.3 (14E222b) iOS iPhone 14 Pro Max simulator
3
0
711
Apr ’23
How to define a generic SwiftUI view that can accept sectioned fetch results for different entities
I need to define a generic SwiftUI view that can accept sectioned fetch results for different CoreData entities, but I'm not sure how to define the generic view. In the example below, I have two sectioned fetch results defined for Patient and Doctor entities. I need to be able to pass them to the generic view. @SectionedFetchRequest( sectionIdentifier: \.sectionTitle, sortDescriptors: Patient.nameSortDescriptors(), animation: .default) private var patients: SectionedFetchResults<String, Patient> @SectionedFetchRequest( sectionIdentifier: \.sectionTitle, sortDescriptors: Doctor.nameSortDescriptors(), animation: .default) private var doctors: SectionedFetchResults<String, Doctor> GenericView(items: patients) GenericView(items: doctors) struct GenericView: View { let items: ????? }
2
0
1.7k
Feb ’22