Post

Replies

Boosts

Views

Activity

SwiftUI CoreData relationship binding Bug
I developing simple app to calculate personal money income and consumption. I use CORE DATA to save my model. The models consists of this CDCatalogWallet var name: String var ref: String CDCatalogStateIncome var name: String var ref: String CDDocumentIncome var ref: String var wallet: CDCatalogWallet (relationship has one) var states_: CDDocumentIncomeState (relationship has many) CDDocumentIncomeState var cdCatalogStateIncome: CDCatalogStateIncome (relationship has one) var document: CDDocumentIncome (relationship has one) CDDocumentIncome hasMany -> CDDocumentIncomeState hasOne -> CDCatalogStateIncome The bug shows when we pushing CDDocumentIncomeState view The model is simple. The CDDocumentIncome has relationship property cdCatalogStateIncome (relationship many). We open view with CDDocumentIncome and want to add new cdCatalogStateIncome to CDDocumentIncome Then we open view with new cdCatalogStateIncome. On this screen cdCatalogStateIncome has a relationship to CDDocumentIncomeState. But view does not opened. Console constantly print messages DocumentIncomeStateDetailView: @self changed. DocumentIncomeStateDetailView: @self changed. DocumentIncomeStateDetailView: @self changed. DocumentIncomeStateDetailView: @self changed. Also memory increase constantly and very fast. I understand that the view renders constantly. But I cannot figure out what cause a bug. The full code is available on github Github Project
1
0
448
Feb ’24
UIInputView keyboard has wrong height
This issue is only on iPhoneX I've asked a question on stackoverflow https://stackoverflow.com/questions/65112256/iphonex-inputview-wrong-heigh?noredirect=1#comment115113302_65112256 I have textfield input view frame = CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 30) So I expect that keyboard height size will be 30. But it's not. Why I have keyboard height = 69 ? What is the magic number 69 ?
0
0
329
Dec ’20
Core data context.hasChanges crash the app
HelloI'm using core data in my app. I check debug argument "-com.apple.CoreData.ConcurrencyDebug 1".Since I check it my app start crashing when I touch context peroperty "has changes".More information you can see here https://stackoverflow.com/questions/61972247/core-data-crash-with-method-haschangesCan you answer is the "hasChanges" property are not thread safe and I need wrap it by method "perform" or "performAndWait" ?
2
0
1.6k
May ’20