Warning when update version IOS from 12.0 to 14.0
This list fixing warning
1. 'keyWindow' was deprecated in iOS 13.0: Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes
and this how I solve it
before:
safeArea = UIApplication.shared.keyWindow?.safeAreaInsets ?? UIEdgeInsets.zero
After:
safeArea = UIApplication.shared.windows.filter {$0.isKeyWindow}.first?.safeAreaInsets ?? UIEdgeInsets.zero
2.Terminating app due to uncaught exception 'RLMException', reason: 'No properties are defined for 'RealmObject'. Did you remember to mark them with '@objc' in your model?'
Error SubString to String?
normal code
let date =
let splitDate = date.split(separator: "-")
Warning when update version IOS from 12.0 to 14.0
Reviewed by Luffyselah
on
January 30, 2022
Rating: 5