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
// | |
// ProgressView.swift | |
// CustomProgress | |
// | |
// Created by COUTO, TIAGO on 3/12/19. | |
// Copyright © 2019 Couto Code. All rights reserved. | |
// | |
import UIKit |
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
// | |
// UILabel+height.swift | |
// AllBody | |
// | |
// Created by Tiago Do Couto on 8/20/18. | |
// Copyright © 2018 coutocode. All rights reserved. | |
// | |
import UIKit |
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
// | |
// String+AES.swift | |
// bitcoin | |
// | |
// Created by Tiago Do Couto on 7/31/18. | |
// Copyright © 2018 coutocode. All rights reserved. | |
// | |
import CryptoSwift |
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 UIDevice { | |
var modelName: String { | |
var systemInfo = utsname() | |
uname(&systemInfo) | |
let machineMirror = Mirror(reflecting: systemInfo.machine) | |
let identifier = machineMirror.children.reduce("") { identifier, element in | |
guard let value = element.value as? Int8 , value != 0 else { return identifier } | |
return identifier + String(UnicodeScalar(UInt8(value))) | |
} |
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
// | |
// UIView+Shadows.swift | |
// brasileirao | |
// | |
// Created by Tiago Do Couto on 7/24/18. | |
// Copyright © 2018 coutocode. All rights reserved. | |
// | |
import UIKit |
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 ImageIO | |
fileprivate func < <T : Comparable>(lhs: T?, rhs: T?) -> Bool { | |
switch (lhs, rhs) { | |
case let (l?, r?): | |
return l < r | |
case (nil, _?): | |
return true |
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
/* | |
* Copyright (c) 2018. Couto Code | |
*/ | |
package com.coutocode.allgifts.Utils | |
/** | |
* Created by docouto on 4/17/18. | |
*/ |
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 android.annotation.TargetApi | |
import android.content.Context | |
import android.os.Build | |
import android.util.AttributeSet | |
import android.widget.RelativeLayout | |
/** | |
* Created by docouto on 4/9/18. | |
*/ |
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
// | |
// CsvMapper.swift | |
// | |
// Created by Tiago Do Couto on 3/25/18. | |
// Copyright © 2018 CoutoCode. All rights reserved. | |
// | |
import Foundation | |
open class CsvMapper { |
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 | |
class MessageVC: UIViewController { | |
@IBOutlet weak var textViewMessage: UITextView! | |
@IBOutlet weak var heightMessage: NSLayoutConstraint! | |
@IBOutlet var viewMessage: UIView! // the view that will be attached to the keyboard | |
var messageVM: MessageViewModel! | |
let MESSAGE_INITIAL_SIZE: CGFloat = 44 |
NewerOlder