In this post, we will share how to declare a function in Swift programming. This is a very basic program in Swift programming language. If you are Swift beginners or want to start learning Swift programming language, then this program will help you to understand the basic Swift programming.
Copy the below program and create a file named “SwitchProgramExample.swift” and execute it.
let myString = "556"
let myFloat = (myString as NSString).doubleValue
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.