Post

Replies

Boosts

Views

Activity

How to check Quota exceeded in CloudKit
I want to prompt users when their iCloud storage quota is full. My test device's iCloud space is full, and when subscribing to the NSPersistentCloudKitContainer-eventChangedNotification event, events exceeding the quota will not be passed to the application at runtime. When I tried to add data to Core data using NSPersistentCloudKitContainer, I got an error: <CKError 0x600000c15890: "Quota Exceeded" (25/2035); server message = "Quota exceeded"; op = 1ECF73B9554DF79F; uuid = 34D12DF0-A307-49EB-AD3A-BB646FF66F54; Retry after 316.0 seconds>}> My iCloud storage space is full, but I am unable to retrieve the 'Quota exceeded' error.I have written a demo, please help me fix the issue. github: CloudKit Sync Demo
2
0
84
11h
SwiftUI custom font loads slowly
Hi, guys。 When I used SwiftUI to build the app, I used a custom font in the project to display emojis (the font ttf file has 23.7M). When using custom fonts, the code is as follows: ContentView will load slowly。 struct ContentView: View { var body: some View { NavigationView { List { ForEach(0..<100, id: \.self) { i in Text(verbatim: "\u{1fa84}") .font(.custom("NotoColorEmoji", size: 18)) .foregroundColor(.secondary) } } .frame(height: 400) } } } It takes about 3 seconds for the app to start and display the page. If commented out .font(.custom("NotoColorEmoji", size: 18)), everything will be fine So how to improve performance or preload the ttf font file? I wrote a demo in here,Is there any good way to solve this problem?
1
0
1.1k
May ’23
How to check Quota exceeded in CloudKit
I want to prompt users when their iCloud storage quota is full. My test device's iCloud space is full, and when subscribing to the NSPersistentCloudKitContainer-eventChangedNotification event, events exceeding the quota will not be passed to the application at runtime. When I tried to add data to Core data using NSPersistentCloudKitContainer, I got an error: <CKError 0x600000c15890: "Quota Exceeded" (25/2035); server message = "Quota exceeded"; op = 1ECF73B9554DF79F; uuid = 34D12DF0-A307-49EB-AD3A-BB646FF66F54; Retry after 316.0 seconds>}> My iCloud storage space is full, but I am unable to retrieve the 'Quota exceeded' error.I have written a demo, please help me fix the issue. github: CloudKit Sync Demo
Replies
2
Boosts
0
Views
84
Activity
11h
SwiftUI custom font loads slowly
Hi, guys。 When I used SwiftUI to build the app, I used a custom font in the project to display emojis (the font ttf file has 23.7M). When using custom fonts, the code is as follows: ContentView will load slowly。 struct ContentView: View { var body: some View { NavigationView { List { ForEach(0..<100, id: \.self) { i in Text(verbatim: "\u{1fa84}") .font(.custom("NotoColorEmoji", size: 18)) .foregroundColor(.secondary) } } .frame(height: 400) } } } It takes about 3 seconds for the app to start and display the page. If commented out .font(.custom("NotoColorEmoji", size: 18)), everything will be fine So how to improve performance or preload the ttf font file? I wrote a demo in here,Is there any good way to solve this problem?
Replies
1
Boosts
0
Views
1.1k
Activity
May ’23