I hereby claim:
- I am louisdh on github.
- I am louisdh (https://keybase.io/louisdh) on keybase.
- I have a public key whose fingerprint is 4273 FC51 0900 0AFF 5EC7 C74E 5F48 9309 DED5 41C6
To claim this, I am signing this object:
// | |
// NYSKeyboardHelper.swift | |
// B-NYS GCV | |
// | |
// Created by Matthias Nys on 18/03/2017. | |
// Copyright © 2017 B-NYS. All rights reserved. | |
// | |
import UIKit |
import Foundation | |
// Adapted from https://www.cocoanetics.com/2014/06/e-mail-validation/ | |
extension String { | |
var isValidEmail: Bool { | |
guard !self.characters.isEmpty else { | |
return false |
I hereby claim:
To claim this, I am signing this object:
import Foundation | |
extension Data { | |
var utf8String: String? { | |
return string(as: .utf8) | |
} | |
func string(as encoding: String.Encoding) -> String? { | |
return String(data: self, encoding: encoding) |
import Foundation | |
import UIKit | |
@IBDesignable | |
class UIPaddedLabel: UILabel { | |
@IBInspectable var topPadding: CGFloat = 0 { | |
didSet { | |
updatePadding() | |
} |