├── .DS_Store ├── MVVM_New ├── Assets.xcassets │ ├── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── Models │ └── Employee.swift ├── ViewModels │ ├── EmployeesViewModel.swift │ └── EmployeeTableViewDataSource.swift ├── WebService │ └── APIService.swift ├── TableViewCells │ └── EmployeeTableViewCell.swift ├── Controllers │ └── ViewController.swift ├── common │ ├── AppDelegate.swift │ └── SceneDelegate.swift ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard └── Info.plist └── MVVM_New.xcodeproj ├── project.xcworkspace ├── contents.xcworkspacedata ├── xcuserdata │ └── abhilashm.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── xcuserdata └── abhilashm.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ └── xcschememanagement.plist └── project.pbxproj /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AbMathur/MVVM_Swift/HEAD/.DS_Store -------------------------------------------------------------------------------- /MVVM_New/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /MVVM_New.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /MVVM_New.xcodeproj/xcuserdata/abhilashm.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /MVVM_New.xcodeproj/project.xcworkspace/xcuserdata/abhilashm.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AbMathur/MVVM_Swift/HEAD/MVVM_New.xcodeproj/project.xcworkspace/xcuserdata/abhilashm.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /MVVM_New.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /MVVM_New.xcodeproj/xcuserdata/abhilashm.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | MVVM_New.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /MVVM_New/Models/Employee.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Employee.swift 3 | // MVVM_New 4 | // 5 | // Created by Abhilash Mathur on 20/05/20. 6 | // Copyright © 2020 Abhilash Mathur. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | // MARK: - Welcome 12 | struct Employees: Decodable { 13 | let status: String 14 | let data: [EmployeeData] 15 | } 16 | 17 | // MARK: - Datum 18 | struct EmployeeData: Decodable { 19 | let id, employeeName, employeeSalary, employeeAge: String 20 | let profileImage: String 21 | 22 | enum CodingKeys: String, CodingKey { 23 | case id 24 | case employeeName = "employee_name" 25 | case employeeSalary = "employee_salary" 26 | case employeeAge = "employee_age" 27 | case profileImage = "profile_image" 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /MVVM_New/ViewModels/EmployeesViewModel.swift: -------------------------------------------------------------------------------- 1 | // 2 | // EmployeesViewModel.swift 3 | // MVVM_New 4 | // 5 | // Created by Abhilash Mathur on 20/05/20. 6 | // Copyright © 2020 Abhilash Mathur. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | class EmployeesViewModel : NSObject { 12 | 13 | private var apiService : APIService! 14 | private(set) var empData : Employees! { 15 | didSet { 16 | self.bindEmployeeViewModelToController() 17 | } 18 | } 19 | 20 | var bindEmployeeViewModelToController : (() -> ()) = {} 21 | 22 | override init() { 23 | super.init() 24 | self.apiService = APIService() 25 | callFuncToGetEmpData() 26 | } 27 | 28 | func callFuncToGetEmpData() { 29 | self.apiService.apiToGetEmployeeData { (empData) in 30 | self.empData = empData 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /MVVM_New/WebService/APIService.swift: -------------------------------------------------------------------------------- 1 | // 2 | // APIService.swift 3 | // MVVM_New 4 | // 5 | // Created by Abhilash Mathur on 20/05/20. 6 | // Copyright © 2020 Abhilash Mathur. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | 12 | class APIService : NSObject { 13 | 14 | private let sourcesURL = URL(string: "http://dummy.restapiexample.com/api/v1/employees")! 15 | 16 | func apiToGetEmployeeData(completion : @escaping (Employees) -> ()){ 17 | 18 | URLSession.shared.dataTask(with: sourcesURL) { (data, urlResponse, error) in 19 | if let data = data { 20 | 21 | let jsonDecoder = JSONDecoder() 22 | 23 | let empData = try! jsonDecoder.decode(Employees.self, from: data) 24 | 25 | completion(empData) 26 | } 27 | 28 | }.resume() 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /MVVM_New/TableViewCells/EmployeeTableViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // EmployeeTableViewCell.swift 3 | // MVVM_New 4 | // 5 | // Created by Abhilash Mathur on 20/05/20. 6 | // Copyright © 2020 Abhilash Mathur. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class EmployeeTableViewCell: UITableViewCell { 12 | 13 | 14 | @IBOutlet weak var employeeIdLabel: UILabel! 15 | @IBOutlet weak var employeeNameLabel: UILabel! 16 | 17 | var employee : EmployeeData? { 18 | didSet { 19 | employeeIdLabel.text = employee?.id 20 | employeeNameLabel.text = employee?.employeeName 21 | } 22 | } 23 | 24 | override func awakeFromNib() { 25 | super.awakeFromNib() 26 | // Initialization code 27 | } 28 | 29 | override func setSelected(_ selected: Bool, animated: Bool) { 30 | super.setSelected(selected, animated: animated) 31 | 32 | // Configure the view for the selected state 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /MVVM_New/ViewModels/EmployeeTableViewDataSource.swift: -------------------------------------------------------------------------------- 1 | // 2 | // EmployeeTableViewDataSource.swift 3 | // MVVM_New 4 | // 5 | // Created by Abhilash Mathur on 20/05/20. 6 | // Copyright © 2020 Abhilash Mathur. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | 12 | class EmployeeTableViewDataSource : NSObject, UITableViewDataSource { 13 | 14 | private var cellIdentifier : String! 15 | private var items : [T]! 16 | var configureCell : (CELL, T) -> () = {_,_ in } 17 | 18 | 19 | init(cellIdentifier : String, items : [T], configureCell : @escaping (CELL, T) -> ()) { 20 | self.cellIdentifier = cellIdentifier 21 | self.items = items 22 | self.configureCell = configureCell 23 | } 24 | 25 | func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 26 | items.count 27 | } 28 | 29 | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 30 | 31 | let cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier, for: indexPath) as! CELL 32 | 33 | let item = self.items[indexPath.row] 34 | self.configureCell(cell, item) 35 | return cell 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /MVVM_New/Controllers/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // MVVM_New 4 | // 5 | // Created by Abhilash Mathur on 20/05/20. 6 | // Copyright © 2020 Abhilash Mathur. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | 14 | @IBOutlet weak var employeeTableView: UITableView! 15 | 16 | private var employeeViewModel : EmployeesViewModel! 17 | 18 | private var dataSource : EmployeeTableViewDataSource! 19 | 20 | 21 | override func viewDidLoad() { 22 | super.viewDidLoad() 23 | callToViewModelForUIUpdate() 24 | } 25 | 26 | func callToViewModelForUIUpdate(){ 27 | 28 | self.employeeViewModel = EmployeesViewModel() 29 | self.employeeViewModel.bindEmployeeViewModelToController = { 30 | self.updateDataSource() 31 | } 32 | } 33 | 34 | func updateDataSource(){ 35 | 36 | self.dataSource = EmployeeTableViewDataSource(cellIdentifier: "EmployeeTableViewCell", items: self.employeeViewModel.empData.data, configureCell: { (cell, evm) in 37 | cell.employeeIdLabel.text = evm.id 38 | cell.employeeNameLabel.text = evm.employeeName 39 | }) 40 | 41 | DispatchQueue.main.async { 42 | self.employeeTableView.dataSource = self.dataSource 43 | self.employeeTableView.reloadData() 44 | } 45 | } 46 | 47 | } 48 | 49 | -------------------------------------------------------------------------------- /MVVM_New/common/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // MVVM_New 4 | // 5 | // Created by Abhilash Mathur on 20/05/20. 6 | // Copyright © 2020 Abhilash Mathur. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | 15 | 16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 17 | // Override point for customization after application launch. 18 | return true 19 | } 20 | 21 | // MARK: UISceneSession Lifecycle 22 | 23 | func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { 24 | // Called when a new scene session is being created. 25 | // Use this method to select a configuration to create the new scene with. 26 | return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) 27 | } 28 | 29 | func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { 30 | // Called when the user discards a scene session. 31 | // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. 32 | // Use this method to release any resources that were specific to the discarded scenes, as they will not return. 33 | } 34 | 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /MVVM_New/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /MVVM_New/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "scale" : "1x", 46 | "size" : "20x20" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "scale" : "2x", 51 | "size" : "20x20" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "scale" : "1x", 56 | "size" : "29x29" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "scale" : "2x", 61 | "size" : "29x29" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "scale" : "1x", 66 | "size" : "40x40" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "scale" : "2x", 71 | "size" : "40x40" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "scale" : "1x", 76 | "size" : "76x76" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "scale" : "2x", 81 | "size" : "76x76" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "scale" : "2x", 86 | "size" : "83.5x83.5" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "scale" : "1x", 91 | "size" : "1024x1024" 92 | } 93 | ], 94 | "info" : { 95 | "author" : "xcode", 96 | "version" : 1 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /MVVM_New/common/SceneDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SceneDelegate.swift 3 | // MVVM_New 4 | // 5 | // Created by Abhilash Mathur on 20/05/20. 6 | // Copyright © 2020 Abhilash Mathur. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class SceneDelegate: UIResponder, UIWindowSceneDelegate { 12 | 13 | var window: UIWindow? 14 | 15 | 16 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { 17 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. 18 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. 19 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). 20 | guard let _ = (scene as? UIWindowScene) else { return } 21 | } 22 | 23 | func sceneDidDisconnect(_ scene: UIScene) { 24 | // Called as the scene is being released by the system. 25 | // This occurs shortly after the scene enters the background, or when its session is discarded. 26 | // Release any resources associated with this scene that can be re-created the next time the scene connects. 27 | // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). 28 | } 29 | 30 | func sceneDidBecomeActive(_ scene: UIScene) { 31 | // Called when the scene has moved from an inactive state to an active state. 32 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. 33 | } 34 | 35 | func sceneWillResignActive(_ scene: UIScene) { 36 | // Called when the scene will move from an active state to an inactive state. 37 | // This may occur due to temporary interruptions (ex. an incoming phone call). 38 | } 39 | 40 | func sceneWillEnterForeground(_ scene: UIScene) { 41 | // Called as the scene transitions from the background to the foreground. 42 | // Use this method to undo the changes made on entering the background. 43 | } 44 | 45 | func sceneDidEnterBackground(_ scene: UIScene) { 46 | // Called as the scene transitions from the foreground to the background. 47 | // Use this method to save data, release shared resources, and store enough scene-specific state information 48 | // to restore the scene back to its current state. 49 | } 50 | 51 | 52 | } 53 | 54 | -------------------------------------------------------------------------------- /MVVM_New/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UIApplicationSceneManifest 24 | 25 | UIApplicationSupportsMultipleScenes 26 | 27 | UISceneConfigurations 28 | 29 | UIWindowSceneSessionRoleApplication 30 | 31 | 32 | UISceneConfigurationName 33 | Default Configuration 34 | UISceneDelegateClassName 35 | $(PRODUCT_MODULE_NAME).SceneDelegate 36 | UISceneStoryboardFile 37 | Main 38 | 39 | 40 | 41 | 42 | UILaunchStoryboardName 43 | LaunchScreen 44 | UIMainStoryboardFile 45 | Main 46 | UIRequiredDeviceCapabilities 47 | 48 | armv7 49 | 50 | UISupportedInterfaceOrientations 51 | 52 | UIInterfaceOrientationPortrait 53 | UIInterfaceOrientationLandscapeLeft 54 | UIInterfaceOrientationLandscapeRight 55 | 56 | UISupportedInterfaceOrientations~ipad 57 | 58 | UIInterfaceOrientationPortrait 59 | UIInterfaceOrientationPortraitUpsideDown 60 | UIInterfaceOrientationLandscapeLeft 61 | UIInterfaceOrientationLandscapeRight 62 | 63 | NSAppTransportSecurity 64 | 65 | NSAllowsArbitraryLoads 66 | 67 | NSExceptionDomains 68 | 69 | example.com 70 | 71 | NSExceptionAllowsInsecureHTTPLoads 72 | 73 | NSIncludesSubdomains 74 | 75 | 76 | 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /MVVM_New/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 34 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /MVVM_New.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 388A2FEE24755072003E4341 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 388A2FED24755072003E4341 /* AppDelegate.swift */; }; 11 | 388A2FF024755072003E4341 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 388A2FEF24755072003E4341 /* SceneDelegate.swift */; }; 12 | 388A2FF224755072003E4341 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 388A2FF124755072003E4341 /* ViewController.swift */; }; 13 | 388A2FF524755072003E4341 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 388A2FF324755072003E4341 /* Main.storyboard */; }; 14 | 388A2FF724755076003E4341 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 388A2FF624755076003E4341 /* Assets.xcassets */; }; 15 | 388A2FFA24755076003E4341 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 388A2FF824755076003E4341 /* LaunchScreen.storyboard */; }; 16 | 388A30032475511D003E4341 /* Employee.swift in Sources */ = {isa = PBXBuildFile; fileRef = 388A30022475511D003E4341 /* Employee.swift */; }; 17 | 388A3006247551B3003E4341 /* EmployeesViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 388A3005247551B3003E4341 /* EmployeesViewModel.swift */; }; 18 | 388A3009247551D2003E4341 /* APIService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 388A3008247551D2003E4341 /* APIService.swift */; }; 19 | 388A300D247581C4003E4341 /* EmployeeTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 388A300C247581C4003E4341 /* EmployeeTableViewCell.swift */; }; 20 | 388A3010247583CC003E4341 /* EmployeeTableViewDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 388A300F247583CC003E4341 /* EmployeeTableViewDataSource.swift */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXFileReference section */ 24 | 388A2FEA24755072003E4341 /* MVVM_New.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MVVM_New.app; sourceTree = BUILT_PRODUCTS_DIR; }; 25 | 388A2FED24755072003E4341 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 26 | 388A2FEF24755072003E4341 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; 27 | 388A2FF124755072003E4341 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 28 | 388A2FF424755072003E4341 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 29 | 388A2FF624755076003E4341 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 30 | 388A2FF924755076003E4341 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 31 | 388A2FFB24755076003E4341 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 32 | 388A30022475511D003E4341 /* Employee.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Employee.swift; sourceTree = ""; }; 33 | 388A3005247551B3003E4341 /* EmployeesViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmployeesViewModel.swift; sourceTree = ""; }; 34 | 388A3008247551D2003E4341 /* APIService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = APIService.swift; sourceTree = ""; }; 35 | 388A300C247581C4003E4341 /* EmployeeTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmployeeTableViewCell.swift; sourceTree = ""; }; 36 | 388A300F247583CC003E4341 /* EmployeeTableViewDataSource.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmployeeTableViewDataSource.swift; sourceTree = ""; }; 37 | /* End PBXFileReference section */ 38 | 39 | /* Begin PBXFrameworksBuildPhase section */ 40 | 388A2FE724755072003E4341 /* Frameworks */ = { 41 | isa = PBXFrameworksBuildPhase; 42 | buildActionMask = 2147483647; 43 | files = ( 44 | ); 45 | runOnlyForDeploymentPostprocessing = 0; 46 | }; 47 | /* End PBXFrameworksBuildPhase section */ 48 | 49 | /* Begin PBXGroup section */ 50 | 388A2FE124755072003E4341 = { 51 | isa = PBXGroup; 52 | children = ( 53 | 388A2FEC24755072003E4341 /* MVVM_New */, 54 | 388A2FEB24755072003E4341 /* Products */, 55 | ); 56 | sourceTree = ""; 57 | }; 58 | 388A2FEB24755072003E4341 /* Products */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 388A2FEA24755072003E4341 /* MVVM_New.app */, 62 | ); 63 | name = Products; 64 | sourceTree = ""; 65 | }; 66 | 388A2FEC24755072003E4341 /* MVVM_New */ = { 67 | isa = PBXGroup; 68 | children = ( 69 | 388A300B247581A4003E4341 /* TableViewCells */, 70 | 388A3007247551BD003E4341 /* WebService */, 71 | 388A300424755198003E4341 /* ViewModels */, 72 | 388A3001247550FE003E4341 /* Models */, 73 | 388A300E24758395003E4341 /* common */, 74 | 388A300A247551DE003E4341 /* Controllers */, 75 | 388A2FF324755072003E4341 /* Main.storyboard */, 76 | 388A2FF624755076003E4341 /* Assets.xcassets */, 77 | 388A2FF824755076003E4341 /* LaunchScreen.storyboard */, 78 | 388A2FFB24755076003E4341 /* Info.plist */, 79 | ); 80 | path = MVVM_New; 81 | sourceTree = ""; 82 | }; 83 | 388A3001247550FE003E4341 /* Models */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | 388A30022475511D003E4341 /* Employee.swift */, 87 | ); 88 | path = Models; 89 | sourceTree = ""; 90 | }; 91 | 388A300424755198003E4341 /* ViewModels */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 388A3005247551B3003E4341 /* EmployeesViewModel.swift */, 95 | 388A300F247583CC003E4341 /* EmployeeTableViewDataSource.swift */, 96 | ); 97 | path = ViewModels; 98 | sourceTree = ""; 99 | }; 100 | 388A3007247551BD003E4341 /* WebService */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 388A3008247551D2003E4341 /* APIService.swift */, 104 | ); 105 | path = WebService; 106 | sourceTree = ""; 107 | }; 108 | 388A300A247551DE003E4341 /* Controllers */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | 388A2FF124755072003E4341 /* ViewController.swift */, 112 | ); 113 | path = Controllers; 114 | sourceTree = ""; 115 | }; 116 | 388A300B247581A4003E4341 /* TableViewCells */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 388A300C247581C4003E4341 /* EmployeeTableViewCell.swift */, 120 | ); 121 | path = TableViewCells; 122 | sourceTree = ""; 123 | }; 124 | 388A300E24758395003E4341 /* common */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 388A2FEF24755072003E4341 /* SceneDelegate.swift */, 128 | 388A2FED24755072003E4341 /* AppDelegate.swift */, 129 | ); 130 | path = common; 131 | sourceTree = ""; 132 | }; 133 | /* End PBXGroup section */ 134 | 135 | /* Begin PBXNativeTarget section */ 136 | 388A2FE924755072003E4341 /* MVVM_New */ = { 137 | isa = PBXNativeTarget; 138 | buildConfigurationList = 388A2FFE24755076003E4341 /* Build configuration list for PBXNativeTarget "MVVM_New" */; 139 | buildPhases = ( 140 | 388A2FE624755072003E4341 /* Sources */, 141 | 388A2FE724755072003E4341 /* Frameworks */, 142 | 388A2FE824755072003E4341 /* Resources */, 143 | ); 144 | buildRules = ( 145 | ); 146 | dependencies = ( 147 | ); 148 | name = MVVM_New; 149 | productName = MVVM_New; 150 | productReference = 388A2FEA24755072003E4341 /* MVVM_New.app */; 151 | productType = "com.apple.product-type.application"; 152 | }; 153 | /* End PBXNativeTarget section */ 154 | 155 | /* Begin PBXProject section */ 156 | 388A2FE224755072003E4341 /* Project object */ = { 157 | isa = PBXProject; 158 | attributes = { 159 | LastSwiftUpdateCheck = 1150; 160 | LastUpgradeCheck = 1150; 161 | ORGANIZATIONNAME = "Abhilash Mathur"; 162 | TargetAttributes = { 163 | 388A2FE924755072003E4341 = { 164 | CreatedOnToolsVersion = 11.5; 165 | }; 166 | }; 167 | }; 168 | buildConfigurationList = 388A2FE524755072003E4341 /* Build configuration list for PBXProject "MVVM_New" */; 169 | compatibilityVersion = "Xcode 9.3"; 170 | developmentRegion = en; 171 | hasScannedForEncodings = 0; 172 | knownRegions = ( 173 | en, 174 | Base, 175 | ); 176 | mainGroup = 388A2FE124755072003E4341; 177 | productRefGroup = 388A2FEB24755072003E4341 /* Products */; 178 | projectDirPath = ""; 179 | projectRoot = ""; 180 | targets = ( 181 | 388A2FE924755072003E4341 /* MVVM_New */, 182 | ); 183 | }; 184 | /* End PBXProject section */ 185 | 186 | /* Begin PBXResourcesBuildPhase section */ 187 | 388A2FE824755072003E4341 /* Resources */ = { 188 | isa = PBXResourcesBuildPhase; 189 | buildActionMask = 2147483647; 190 | files = ( 191 | 388A2FFA24755076003E4341 /* LaunchScreen.storyboard in Resources */, 192 | 388A2FF724755076003E4341 /* Assets.xcassets in Resources */, 193 | 388A2FF524755072003E4341 /* Main.storyboard in Resources */, 194 | ); 195 | runOnlyForDeploymentPostprocessing = 0; 196 | }; 197 | /* End PBXResourcesBuildPhase section */ 198 | 199 | /* Begin PBXSourcesBuildPhase section */ 200 | 388A2FE624755072003E4341 /* Sources */ = { 201 | isa = PBXSourcesBuildPhase; 202 | buildActionMask = 2147483647; 203 | files = ( 204 | 388A2FF224755072003E4341 /* ViewController.swift in Sources */, 205 | 388A300D247581C4003E4341 /* EmployeeTableViewCell.swift in Sources */, 206 | 388A30032475511D003E4341 /* Employee.swift in Sources */, 207 | 388A2FEE24755072003E4341 /* AppDelegate.swift in Sources */, 208 | 388A3006247551B3003E4341 /* EmployeesViewModel.swift in Sources */, 209 | 388A3009247551D2003E4341 /* APIService.swift in Sources */, 210 | 388A3010247583CC003E4341 /* EmployeeTableViewDataSource.swift in Sources */, 211 | 388A2FF024755072003E4341 /* SceneDelegate.swift in Sources */, 212 | ); 213 | runOnlyForDeploymentPostprocessing = 0; 214 | }; 215 | /* End PBXSourcesBuildPhase section */ 216 | 217 | /* Begin PBXVariantGroup section */ 218 | 388A2FF324755072003E4341 /* Main.storyboard */ = { 219 | isa = PBXVariantGroup; 220 | children = ( 221 | 388A2FF424755072003E4341 /* Base */, 222 | ); 223 | name = Main.storyboard; 224 | sourceTree = ""; 225 | }; 226 | 388A2FF824755076003E4341 /* LaunchScreen.storyboard */ = { 227 | isa = PBXVariantGroup; 228 | children = ( 229 | 388A2FF924755076003E4341 /* Base */, 230 | ); 231 | name = LaunchScreen.storyboard; 232 | sourceTree = ""; 233 | }; 234 | /* End PBXVariantGroup section */ 235 | 236 | /* Begin XCBuildConfiguration section */ 237 | 388A2FFC24755076003E4341 /* Debug */ = { 238 | isa = XCBuildConfiguration; 239 | buildSettings = { 240 | ALWAYS_SEARCH_USER_PATHS = NO; 241 | CLANG_ANALYZER_NONNULL = YES; 242 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 243 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 244 | CLANG_CXX_LIBRARY = "libc++"; 245 | CLANG_ENABLE_MODULES = YES; 246 | CLANG_ENABLE_OBJC_ARC = YES; 247 | CLANG_ENABLE_OBJC_WEAK = YES; 248 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 249 | CLANG_WARN_BOOL_CONVERSION = YES; 250 | CLANG_WARN_COMMA = YES; 251 | CLANG_WARN_CONSTANT_CONVERSION = YES; 252 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 253 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 254 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 255 | CLANG_WARN_EMPTY_BODY = YES; 256 | CLANG_WARN_ENUM_CONVERSION = YES; 257 | CLANG_WARN_INFINITE_RECURSION = YES; 258 | CLANG_WARN_INT_CONVERSION = YES; 259 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 260 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 261 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 262 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 263 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 264 | CLANG_WARN_STRICT_PROTOTYPES = YES; 265 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 266 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 267 | CLANG_WARN_UNREACHABLE_CODE = YES; 268 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 269 | COPY_PHASE_STRIP = NO; 270 | DEBUG_INFORMATION_FORMAT = dwarf; 271 | ENABLE_STRICT_OBJC_MSGSEND = YES; 272 | ENABLE_TESTABILITY = YES; 273 | GCC_C_LANGUAGE_STANDARD = gnu11; 274 | GCC_DYNAMIC_NO_PIC = NO; 275 | GCC_NO_COMMON_BLOCKS = YES; 276 | GCC_OPTIMIZATION_LEVEL = 0; 277 | GCC_PREPROCESSOR_DEFINITIONS = ( 278 | "DEBUG=1", 279 | "$(inherited)", 280 | ); 281 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 282 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 283 | GCC_WARN_UNDECLARED_SELECTOR = YES; 284 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 285 | GCC_WARN_UNUSED_FUNCTION = YES; 286 | GCC_WARN_UNUSED_VARIABLE = YES; 287 | IPHONEOS_DEPLOYMENT_TARGET = 13.5; 288 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 289 | MTL_FAST_MATH = YES; 290 | ONLY_ACTIVE_ARCH = YES; 291 | SDKROOT = iphoneos; 292 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 293 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 294 | }; 295 | name = Debug; 296 | }; 297 | 388A2FFD24755076003E4341 /* Release */ = { 298 | isa = XCBuildConfiguration; 299 | buildSettings = { 300 | ALWAYS_SEARCH_USER_PATHS = NO; 301 | CLANG_ANALYZER_NONNULL = YES; 302 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 303 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 304 | CLANG_CXX_LIBRARY = "libc++"; 305 | CLANG_ENABLE_MODULES = YES; 306 | CLANG_ENABLE_OBJC_ARC = YES; 307 | CLANG_ENABLE_OBJC_WEAK = YES; 308 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 309 | CLANG_WARN_BOOL_CONVERSION = YES; 310 | CLANG_WARN_COMMA = YES; 311 | CLANG_WARN_CONSTANT_CONVERSION = YES; 312 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 313 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 314 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 315 | CLANG_WARN_EMPTY_BODY = YES; 316 | CLANG_WARN_ENUM_CONVERSION = YES; 317 | CLANG_WARN_INFINITE_RECURSION = YES; 318 | CLANG_WARN_INT_CONVERSION = YES; 319 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 320 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 321 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 323 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 324 | CLANG_WARN_STRICT_PROTOTYPES = YES; 325 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 326 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 327 | CLANG_WARN_UNREACHABLE_CODE = YES; 328 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 329 | COPY_PHASE_STRIP = NO; 330 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 331 | ENABLE_NS_ASSERTIONS = NO; 332 | ENABLE_STRICT_OBJC_MSGSEND = YES; 333 | GCC_C_LANGUAGE_STANDARD = gnu11; 334 | GCC_NO_COMMON_BLOCKS = YES; 335 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 336 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 337 | GCC_WARN_UNDECLARED_SELECTOR = YES; 338 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 339 | GCC_WARN_UNUSED_FUNCTION = YES; 340 | GCC_WARN_UNUSED_VARIABLE = YES; 341 | IPHONEOS_DEPLOYMENT_TARGET = 13.5; 342 | MTL_ENABLE_DEBUG_INFO = NO; 343 | MTL_FAST_MATH = YES; 344 | SDKROOT = iphoneos; 345 | SWIFT_COMPILATION_MODE = wholemodule; 346 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 347 | VALIDATE_PRODUCT = YES; 348 | }; 349 | name = Release; 350 | }; 351 | 388A2FFF24755076003E4341 /* Debug */ = { 352 | isa = XCBuildConfiguration; 353 | buildSettings = { 354 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 355 | CODE_SIGN_STYLE = Automatic; 356 | DEVELOPMENT_TEAM = ZJLVWCF853; 357 | INFOPLIST_FILE = MVVM_New/Info.plist; 358 | LD_RUNPATH_SEARCH_PATHS = ( 359 | "$(inherited)", 360 | "@executable_path/Frameworks", 361 | ); 362 | PRODUCT_BUNDLE_IDENTIFIER = "ts.MVVM-New"; 363 | PRODUCT_NAME = "$(TARGET_NAME)"; 364 | SWIFT_VERSION = 5.0; 365 | TARGETED_DEVICE_FAMILY = "1,2"; 366 | }; 367 | name = Debug; 368 | }; 369 | 388A300024755076003E4341 /* Release */ = { 370 | isa = XCBuildConfiguration; 371 | buildSettings = { 372 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 373 | CODE_SIGN_STYLE = Automatic; 374 | DEVELOPMENT_TEAM = ZJLVWCF853; 375 | INFOPLIST_FILE = MVVM_New/Info.plist; 376 | LD_RUNPATH_SEARCH_PATHS = ( 377 | "$(inherited)", 378 | "@executable_path/Frameworks", 379 | ); 380 | PRODUCT_BUNDLE_IDENTIFIER = "ts.MVVM-New"; 381 | PRODUCT_NAME = "$(TARGET_NAME)"; 382 | SWIFT_VERSION = 5.0; 383 | TARGETED_DEVICE_FAMILY = "1,2"; 384 | }; 385 | name = Release; 386 | }; 387 | /* End XCBuildConfiguration section */ 388 | 389 | /* Begin XCConfigurationList section */ 390 | 388A2FE524755072003E4341 /* Build configuration list for PBXProject "MVVM_New" */ = { 391 | isa = XCConfigurationList; 392 | buildConfigurations = ( 393 | 388A2FFC24755076003E4341 /* Debug */, 394 | 388A2FFD24755076003E4341 /* Release */, 395 | ); 396 | defaultConfigurationIsVisible = 0; 397 | defaultConfigurationName = Release; 398 | }; 399 | 388A2FFE24755076003E4341 /* Build configuration list for PBXNativeTarget "MVVM_New" */ = { 400 | isa = XCConfigurationList; 401 | buildConfigurations = ( 402 | 388A2FFF24755076003E4341 /* Debug */, 403 | 388A300024755076003E4341 /* Release */, 404 | ); 405 | defaultConfigurationIsVisible = 0; 406 | defaultConfigurationName = Release; 407 | }; 408 | /* End XCConfigurationList section */ 409 | }; 410 | rootObject = 388A2FE224755072003E4341 /* Project object */; 411 | } 412 | --------------------------------------------------------------------------------