Skip to content

Instantly share code, notes, and snippets.

@jitinsharma
Created March 18, 2018 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jitinsharma/aa04bc8991aa5ca7d642f0fc75b5c650 to your computer and use it in GitHub Desktop.
Save jitinsharma/aa04bc8991aa5ca7d642f0fc75b5c650 to your computer and use it in GitHub Desktop.
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