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
extension UIViewController { | |
func startLoading() { | |
let storyboard = UIStoryboard(name: LoadingViewController.storyboard, bundle: nil) | |
if let loadingViewController = storyboard.instantiateViewController(withIdentifier: LoadingViewController.viewControllerId) as? LoadingViewController { | |
loadingViewController.modalPresentationStyle = .overCurrentContext | |
present(loadingViewController, animated: true, completion: nil) | |
} | |
} | |
} |
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 Lottie | |
class LoadingViewController: UIViewController { | |
// MARK: - Outlets | |
@IBOutlet weak var viewAnimation: UIView! { | |
didSet { | |
viewAnimation.layer.cornerRadius = 18.0 |
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
// | |
// HomePresenter.swift | |
// javapop | |
// | |
// Created by Wesley Brito on 28/03/20. | |
// Copyright © 2020 Wesley Brito. All rights reserved. | |
// | |
import Foundation |
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
// | |
// HomeController.swift | |
// javapop | |
// | |
// Created by Wesley Brito on 22/03/20. | |
// Copyright © 2020 Wesley Brito. All rights reserved. | |
// | |
import Foundation |
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
// | |
// HomeTableViewController.swift | |
// javapop | |
// | |
// Created by Wesley Brito on 21/03/20. | |
// Copyright © 2020 Wesley Brito. All rights reserved. | |
// | |
import UIKit | |
import Kingfisher |
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
var selectedIndx = -1 | |
var newIndexSet = IndexSet() | |
var thereIsCellTapped = false | |
func numberOfSections(in tableView: UITableView) -> Int { | |
return 3 | |
} | |
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
// | |
// Error+enum.swift | |
// | |
// Created by Wesley Brito on 12/07/19. | |
// Copyright © 2019 Wesley Brito. All rights reserved. | |
// | |
import Foundation | |
enum RequestErrors: 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
// | |
// Alert+ViewController.swift | |
// | |
// Created by Wesley Brito on 25/07/19. | |
// Copyright © 2019 Wesley Brito. All rights reserved. | |
// | |
import Foundation | |
extension UIViewController { |
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
// | |
// Array+RemoveDuplicate.swift | |
// | |
// Created by Wesley Brito on 12/08/19. | |
// Copyright © 2019 Wesley Brito. All rights reserved. | |
// | |
import Foundation | |
extension Array where Element: Hashable { |
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
// | |
// ViewController.swift | |
// ProjetoPodTest | |
// | |
// Created by Wesley Brito on 24/11/18. | |
// Copyright © 2018 Wesley Brito. All rights reserved. | |
// | |
import UIKit |