if #available(iOS 13.0, *) {
    let app = UIApplication.shared
    let statusBarHeight: CGFloat = app.statusBarFrame.size.height
    
    let statusbarView = UIView()
    statusbarView.backgroundColor = UIColor.red
    view.addSubview(statusbarView)
  
 statusbarView.translatesAutoresizingMaskIntoConstraints = false
  
    
      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
    
  
  
    
  | /*Grouping sequences | |
| Dictionaries have a marvelous initializer called Dictionary(grouping:), and its job is to convert a sequence into a dictionary based on any grouping you want. | |
| As an example, here’s an array of popular Swift conferences:*/ | |
| let conferences = ["AltConf", "App Builders", "NSSpain"] | |
| //We could group that into a dictionary, using the first letter of each conference as the key and the conference names stored as an array: | |
| let alphabetical = Dictionary(grouping: conferences) { $0.first! } | 
  
    
      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
    
  
  
    
  | - (UIViewController *)topViewController{ | |
| return [self topViewController:[UIApplication sharedApplication].keyWindow.rootViewController]; | |
| } | |
| - (UIViewController *)topViewController:(UIViewController *)rootViewController | |
| { | |
| if (rootViewController.presentedViewController == nil) { | |
| return rootViewController; | |
| } | |
  
    
      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
    
  
  
    
  | extension UIViewController { | |
| func topMostViewController() -> UIViewController { | |
| if self.presentedViewController == nil { | |
| return self | |
| } | |
| if let navigation = self.presentedViewController as? UINavigationController { | |
| return navigation.visibleViewController.topMostViewController() | |
| } | |
| if let tab = self.presentedViewController as? UITabBarController { | |
| if let selectedTab = tab.selectedViewController { | 
  
    
      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
    
  
  
    
  | import UIKit | |
| import Foundation | |
| enum LoginType: String { | |
| case email | |
| case facebook | |
| case google | |
| case instagaram | |
| case guest | |
| } | 
  
    
      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
    
  
  
    
  | xtension UIApplication { | |
| class var statusBarBackgroundColor: UIColor? { | |
| get { | |
| return statusBarUIView?.backgroundColor | |
| } set { | |
| statusBarUIView?.backgroundColor = newValue | |
| } | |
| } | 
  
    
      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
    
  
  
    
  | // | |
| // ViewController.swift | |
| // PageViewController | |
| // | |
| // Created by Miguel Fermin on 5/8/17. | |
| // Copyright © 2017 MAF Software LLC. 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
    
  
  
    
  | import UIKit | |
| import XLPagerTabStrip | |
| class ProfileTabsVC: ButtonBarPagerTabStripViewController { | |
| //MARK: - Life Cycle | |
| override func viewDidLoad() { | |
| setupPager() | |
| super.viewDidLoad() | 
  
    
      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, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) { | |
| let lastSectionIndex = tableView.numberOfSections - 1 | |
| let lastRowIndex = tableView.numberOfRows(inSection: lastSectionIndex) - 1 | |
| if indexPath.section == lastSectionIndex && indexPath.row == lastRowIndex { | |
| // print("this is the last cell") | |
| let spinner = UIActivityIndicatorView(activityIndicatorStyle: .gray) | |
| spinner.startAnimating() | |
| spinner.frame = CGRect(x: CGFloat(0), y: CGFloat(0), width: tableView.bounds.width, height: CGFloat(44)) | |
| self.tableView.tableFooterView = spinner | 
  
    
      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
    
  
  
    
  | import Foundation | |
| class BaseAPIResponse : Codable { | |
| let success : Bool? | |
| let message : String? | |
| // let data : [Product]? | |
| let errors : [String:String]? | |