Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import UIKit
import Base
class ViewController: UIViewController {
@IBOutlet weak var sumView: UITextField!
override func viewDidLoad() {
super.viewDidLoad()
let base = BaseHelper()
sumView.text = "Sum: \(base.getSum(first: 2, second: 3))"
let value = base.sliceFilterAndSort(list: ["Adam","Aakash","John","Enrique","Abhishek"])
value.forEach { (value) in
NSLog(value)
}
let model = BaseModel(id: 2, type: "model1")
let model2 = model.doCopy(id: 3, type: model.type)
NSLog("\(model2)")
let key = Base.API_KEY()
let helperId = BaseHelperCompanion.init().helperId
NSLog(key)
NSLog("\(helperId)")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment