Check out example codes for "swift programming language". It will help you in understanding the concepts better.

Code Example 1

// Basic Swift Program
import UIKit

var str1 = "Hello geeks!"
var str2 = "How are you?"
print (str1)
print (str2)

Code Example 2

//Swift is a general-purpose, multi-paradigm, compiled programming language developed by Apple Inc. for iOS, iPadOS, macOS, watchOS, tvOS, Linux, and z/OS. Swift is designed to work with Apple's Cocoa and Cocoa Touch frameworks and the large body of existing Objective-C code written for Apple products.

Learn ReactJs, React Native from