Skip to content

Instantly share code, notes, and snippets.

View FabiolaRamirez's full-sized avatar

Fabiola Ramírez FabiolaRamirez

  • Bolivia - La Paz
View GitHub Profile
//
// MonochromeView.swift
// Speedometer
//
// Created by Anirudha on 13/02/18.
// Copyright © 2018 Anirudha Mahale. All rights reserved.
//
import UIKit
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:
//
// CircleScoreMeterView.swift
// financeUI
//
// Created by Fabiola Ramirez on 3/1/19.
// Copyright © 2019 creditsesame. All rights reserved.
//
import UIKit
//
// TipsScreenTips.swift
// finance
//
// Created by DavidMora on 5/2/18.
// Copyright © 2018 creditsesame. All rights reserved.
//
import UIKit
//
// DebtFactorViewController.swift
// finance
//
// Created by DavidMora on 3/12/18.
// Copyright © 2018 creditsesame. All rights reserved.
//
import UIKit
func configureHeader() {
var offersHeaderView = UIView()
// control
offersHeaderView = UIView.loadNib("AdvertisersDisclosureHeaderView")
// variation
offersHeaderView = UIView.loadNib("ContentHeaderView")
//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,
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 {
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()
}
//
// MapView.swift
// finance
//
// Created by Fabiola Ramirez on 10/18/18.
// Copyright © 2018 creditsesame. All rights reserved.
//
import UIKit
import MapKit