Categories
Mastering Development

Function from another class ios swift not executed

Please tell me, I have 2 classes. There is a load_shop() function that enables the display of the webView. If I call a function from the first class ViewController then the function is executed and the webView is displayed, and if from another class CheckUpdate the function is executed (print is output) but the webView […]

Categories
Mastering Development

Collection view cell background colours reverse on reloadData() Swift/Firebase

Swift 5 EDIT: Code size reduced PROBLEM: I have a collection view which loads a set of "courses" from Firebase. Each course has a specific colour (an int) which is pulled from Firebase. This int is then converted using a table to a specific colour within Swift. The collection view initially shows with the correct […]