Created
March 18, 2018 09:27
-
-
Save jitinsharma/aa04bc8991aa5ca7d642f0fc75b5c650 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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