Post

Replies

Boosts

Views

Activity

Reply to LazyVStack in ScrollView flitters on insertion in iOS 17
Find a solution for iOS 17+. Reduce Data Struct into a one-dimensional Array. /** ✅ Make sure LazyVStack is always visible. */ ScrollView { LazyVStack { ForEach(data) { item in switch item.viewStyle { // dynamic config view by data case 1: DynamicHeightView1() case 2: DynamicHeightView2() default: DynamicHeightView() } } } } /** ❌ The contents inside a LazyVStack may disappear from view when the user is scrolling or when the keyboard changes the focus state. */ ScrollView { ForEach(data) { section in LazyVStack { ForEach(section) { row in DynamicHeightView() } } } } // ❌ or ScrollView { View() LazyVStack { ForEach(section) { row in DynamicHeightView() } } LazyVStack { ForEach(section) { row in DynamicHeightView() } } View() }
Dec ’23
Reply to Initialising CloudKit schema on public database fails for in Core Data with multiple strings (rdar://FB8995024)
Meet same issue and find a solution: Don't use initializeCloudKitSchema(), instead of creating an entity, then the system will auto generate schema, without creating extra field( CD_***_ckasset). Example: You use 「PublicEntity」 in 「Public」Configuration; Create a 「PublicEntity」 set value for every field use context.save() then schema 「CD_PublicEntity」 will auto generate.
Sep ’21
Reply to New reject Other - Other
I got the same message twice. My account is new too. Fisrt time, after 3 days, the Apple Developer Contact says that I violate the 「in-app-purchase」rule. I didn't write any in-app-purchase code, but I did import an third library(SwiftyStoreKit) before, uninstalled before submit. Some auto generated pay-related string left in my project cause this problem. I removed the file and re-submit again, now I got this problem again, some 「other-other」... It's really frustrating...
Feb ’21