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
class FloatingTextView: UIControl, UITextViewDelegate { | |
var label: String? { | |
didSet { | |
floatingLabel.text = label | |
hintLabel.text = label | |
} | |
} | |
var text: String? { |
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
// | |
// FloatingTextView.swift | |
// DocumentsUI | |
// | |
// Created by Spencer Whyte on 2018-10-03. | |
// Copyright © 2018 Probuild Software Inc. 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
cat data | sed 's/<option value=".*">//g' | sed 's/<\/option>//g' | sed 's/^ *//' | sed 's/\&/\&/' | sed '/^$/d' | sed 's/$/",/' | sed 's/^/"/g' | tr '\n' ' ' |
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
let dateObject = NSDate() | |
let dayFormatter = NSDateFormatter() | |
dayFormatter.dateFormat = "MMM dd" | |
let hourFormatter = NSDateFormatter() | |
hourFormatter.dateFormat = "HH" | |
let minuteFormatter = NSDateFormatter() | |
minuteFormatter.dateFormat = "mm" |