Apart from other languages, when you write a class in Swift, It should have a initialiser. To solve this we have to write init() function in that particular class. Just like below. For example, look at the below class. Here we have 5 variables. The above error usually comes when you don’t initialize all variables in the class… Read More »
The following is a sample code to do this. Simply copy and paste.
The following code helps you to do this. Save the following code as am .mxml file The html file start.html