Skip to content

Instantly share code, notes, and snippets.

View douglastaquary's full-sized avatar

Douglas Taquary douglastaquary

View GitHub Profile
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,
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"
//
// PopupModelView.swift
import UIKit
protocol PopupModelViewDelegate : class {
func onPopupConfirmation()
func onPopupConfirmationResult(_ result: String)
func onPopupCancelation()
}
//
// ConceptLayout.swift
// Concept-Elements-Swift
//
// Created by Douglas Taquary on 05/11/17.
// Copyright © 2017. All rights reserved.
//
import UIKit
import Foundation
import SwiftyJSON
final public class ResponseCategorias: NSObject, JSONAbleType {
var codigo: Int
var quantidade: Int
var categorias: [Categoria]?
init(codigo: Int,
//
// ConceptPopupManager.swift
// ConceoptTec
//
// Created by Douglas Taquary on 04/11/17.
// Copyright © 2017 Douglas Taquary. All rights reserved.
//
import UIKit
import KLCPopup
//
// ViewModel.swift
//
//
// Created by Douglas Taquary on 02/11/2017.
// Copyright © 2017 Douglas Taquary. All rights reserved.
//
import Foundation
import RxSwift
//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
}
//
// MinhaAPI.swift
//
//
// Created by Douglas Taquary on 04/10/2017.
// Copyright © 2017 Douglas Taquary. All rights reserved.
//
import Foundation
import RxSwift
//
// Networking.swift
//
// Created by Douglas Taquary on 04/10/2017.
// Copyright © 2017 Douglas Taquary. All rights reserved.
//
import Foundation
import Moya