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 XCTest | |
class LoginSpec: XCTestCase { | |
var login: LoginViewModel? | |
override func setUp() { | |
super.setUp() | |
login = LoginViewModel() | |
print("\n Method Calling \n") |
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 PromiseKit | |
let GET_POSTS = "https://jsonplaceholder.typicode.com/posts" | |
struct APIError : Error { | |
var message : String? | |
} | |
struct Post:Codable { |
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 PromiseKit | |
let GET_POSTS = "https://jsonplaceholder.typicode.com/posts" | |
struct Post : Codable { | |
var userId : Int? | |
var id : Int? | |
var title : String? | |
var body : String? |
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 | |
class GenericTableSource : NSObject { | |
private var cellID: String = "" | |
private (set) var data : [Any] = [] | |
func registerCell(identifier: String, data : [String], tableView: UITableView) { | |
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
{ | |
"national": [ | |
{ | |
"name": "Bharatiya Janata Party", | |
"short_name": "BJP", | |
"president": "Amit Shah" | |
}, | |
{ | |
"name": "Indian National Congress", | |
"short_name": "INC", |
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
// | |
// AnimatedCircle.swift | |
// AnimationsIOSSwift | |
// | |
// Created by Damodar, Namala (623-Extern) on 14/09/18. | |
// Copyright © 2018 Damodar, Namala (623-Extern). All rights reserved. | |
// | |
import UIKit | |
import GLKit |
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
protocol StepMenuDelegate { | |
func didSelectItem(atIndex index: NSInteger) | |
} | |
let NUM_OF_ITEMS = 4 | |
@IBDesignable | |
class StepView: UIView { | |
var delegate : StepMenuDelegate! |
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
class MenuViewController: UIViewController { | |
var buttons: [UIButton] = [] | |
var imageView : UIImageView! | |
var constraintLeft : NSLayoutConstraint! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
} | |
override func viewDidAppear(_ animated: Bool) { |
OlderNewer