It works!
Thanks!
Post
Replies
Boosts
Views
Activity
Thank you for your reply.
I try to create a new project, and it can be exported normally.
I will compare the project to find out the cause of the problem.
I can export the string via this way:
Label {
Text(“records list”)
} icon: {
Image(systemImage: “”)
}
Thanks for answer.
I‘m try to set Use Compiler to extract swift strings is no before that way,but not work.
Thank you for your answer.
If I want declare a fetch descriptor as a static variable. Do I also need to set value of fetchLimit in the init()?
Like this:
static var fetchDescriptor = FetchDescriptor<Record>(sortBy: [SortDescriptor(\Record.date, order: .reverse)])
@Query(fetchDescriptor) private var records:[Record]
init() {
view.fetchDescriptor.fetchLimit = 7
}