Swift – Solving Fatal error: Unresolved error Foundation._GenericObjCError.nilError, [:]

You are likely to get this error on CoreData when trying to update the manageObjectContext in the init() of your struct. I was trying calling a function that saves the context upon navigating to a new view from the initializer. A better approach instead is when the view has been rendered use the .onAppear(perform:) modifier… Read More Swift – Solving Fatal error: Unresolved error Foundation._GenericObjCError.nilError, [:]

Swift Basic Operators

On this lesson, we will break down operators. An operator is a special symbol or phrase that we can use to check, change or combine values. Terminology Operators are unary (single target), binary( two targets) or ternary(three targets). The values that operators affect are called operands. Assignment Operators We already used this when we were… Read More Swift Basic Operators

Fix Swift Framework Error: Module compiled with Swift 5.1.3 cannot be imported by the Swift 5.2.4 compiler:

Chances are you upgraded to the latest Xcode and along with it, your Swift compiler is updated as well. Then existing projects using a particular project have stopped working with similar error such as. Or you are checking out some hosted on code on Github using some framework, the framework might have been built using… Read More Fix Swift Framework Error: Module compiled with Swift 5.1.3 cannot be imported by the Swift 5.2.4 compiler: