This file contains hidden or 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
| // | |
| // MonochromeView.swift | |
| // Speedometer | |
| // | |
| // Created by Anirudha on 13/02/18. | |
| // Copyright © 2018 Anirudha Mahale. All rights reserved. | |
| // | |
| import UIKit |
This file contains hidden or 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
| func getTipForFactor() -> FactorTip? { | |
| var grade = creditFactor.creditFactorData?.grade ?? "F" | |
| var tips: [FactorTip]? | |
| guard let configFile = ClientConfigurationManager.shared.configurationFile else { | |
| return nil | |
| } | |
| switch creditFactor { | |
| case .creditUsage: |
This file contains hidden or 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
| // | |
| // CircleScoreMeterView.swift | |
| // financeUI | |
| // | |
| // Created by Fabiola Ramirez on 3/1/19. | |
| // Copyright © 2019 creditsesame. All rights reserved. | |
| // | |
| import UIKit |
This file contains hidden or 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
| // | |
| // TipsScreenTips.swift | |
| // finance | |
| // | |
| // Created by DavidMora on 5/2/18. | |
| // Copyright © 2018 creditsesame. All rights reserved. | |
| // | |
| import UIKit |
This file contains hidden or 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
| // | |
| // DebtFactorViewController.swift | |
| // finance | |
| // | |
| // Created by DavidMora on 3/12/18. | |
| // Copyright © 2018 creditsesame. All rights reserved. | |
| // | |
| import UIKit |
This file contains hidden or 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
| func configureHeader() { | |
| var offersHeaderView = UIView() | |
| // control | |
| offersHeaderView = UIView.loadNib("AdvertisersDisclosureHeaderView") | |
| // variation | |
| offersHeaderView = UIView.loadNib("ContentHeaderView") |
This file contains hidden or 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
| //MARK: - Request | |
| func request(endpoint: String, method: HTTPMethod, version: String? = nil, requestType: ServiceRequestType , parameters: Parameters?, encoding: ParameterEncoding? = nil, httpHeaders: HTTPHeaders? = nil, completionHandler: ((_ data: AnyObject?, _ error: Error?) -> ())? = nil) { | |
| var headers: HTTPHeaders = ["Accept": "application/json", | |
| "Content-Type": "application/json", | |
| "X-Requested-With": "XMLHttpRequest", | |
| "X-cs-platform": Values.platform, | |
| "X-cs-os": Values.iOS, | |
| "X-cs-src": Values.iOS, |
This file contains hidden or 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
| func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { | |
| var cell = UITableViewCell() | |
| if let section = IDProtectionLocationsSection(rawValue: indexPath.section) { | |
| var current: MapPoint? | |
| var alertPoints: [MapPoint] = [] | |
| switch section { | |
| case .sexOffender: | |
| current = CurrentAlert.shared.currentSexOffenderAlertPoint | |
| alertPoints = sexOffendersAlertPoints | |
| switch indexPath.row { |
This file contains hidden or 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
| func configureCreditInquiriesCell(indexPath: IndexPath) -> UITableViewCell { | |
| let cell: UITableViewCell | |
| switch indexPath.row { | |
| case 0: | |
| cell = tableView.dequeueReusableCell(withIdentifier: graphCellIdentifier) ?? UITableViewCell() | |
| guard let inquiriesFactor = creditFactor.creditFactorData as? CreditInquiriesFactor else { | |
| return UITableViewCell() | |
| } |
This file contains hidden or 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
| // | |
| // MapView.swift | |
| // finance | |
| // | |
| // Created by Fabiola Ramirez on 10/18/18. | |
| // Copyright © 2018 creditsesame. All rights reserved. | |
| // | |
| import UIKit | |
| import MapKit |