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 showMenuOptions() { | |
| if let window = UIApplication.shared.keyWindow { | |
| let height: CGFloat = style.grid * 13 | |
| let y = window.frame.height - height | |
| statusView.frame = CGRect(x:0, y: window.frame.height, width: window.frame.width, height: height) | |
| UIView.animate(withDuration: 0.5, | |
| delay: 2, | |
| usingSpringWithDamping: 1, |
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 SnapKit | |
| class StatusViewLaucher: UIView { | |
| let opcaoLabel: UILabel = { | |
| let label = UILabel(frame: .zero) | |
| label.textColor = .red | |
| label.text = "Você não possui créditos suficientes para participar" |
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
| // | |
| // PopupModelView.swift | |
| import UIKit | |
| protocol PopupModelViewDelegate : class { | |
| func onPopupConfirmation() | |
| func onPopupConfirmationResult(_ result: String) | |
| func onPopupCancelation() | |
| } |
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
| // | |
| // ConceptLayout.swift | |
| // Concept-Elements-Swift | |
| // | |
| // Created by Douglas Taquary on 05/11/17. | |
| // Copyright © 2017. 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 Foundation | |
| import SwiftyJSON | |
| final public class ResponseCategorias: NSObject, JSONAbleType { | |
| var codigo: Int | |
| var quantidade: Int | |
| var categorias: [Categoria]? | |
| init(codigo: Int, |
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
| // | |
| // ConceptPopupManager.swift | |
| // ConceoptTec | |
| // | |
| // Created by Douglas Taquary on 04/11/17. | |
| // Copyright © 2017 Douglas Taquary. All rights reserved. | |
| // | |
| import UIKit | |
| import KLCPopup |
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
| // | |
| // ViewModel.swift | |
| // | |
| // | |
| // Created by Douglas Taquary on 02/11/2017. | |
| // Copyright © 2017 Douglas Taquary. All rights reserved. | |
| // | |
| import Foundation | |
| import RxSwift |
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
| //Pra facilitar o parse eu uso esse protocolo nos modelos | |
| // e ai uso um pouco de programação funcional com o rx pra automatizar parse de objeto | |
| //ou array | |
| protocol JSONAbleType { | |
| static func fromJSON(_: [String: Any]) -> Self | |
| } | |
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
| // | |
| // MinhaAPI.swift | |
| // | |
| // | |
| // Created by Douglas Taquary on 04/10/2017. | |
| // Copyright © 2017 Douglas Taquary. All rights reserved. | |
| // | |
| import Foundation | |
| import RxSwift |
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
| // | |
| // Networking.swift | |
| // | |
| // Created by Douglas Taquary on 04/10/2017. | |
| // Copyright © 2017 Douglas Taquary. All rights reserved. | |
| // | |
| import Foundation | |
| import Moya |