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 ImageRow | |
import Eureka | |
class CustomImagePickerController: ImagePickerController { | |
override var preferredStatusBarStyle: UIStatusBarStyle { | |
return .default // For dark status bar | |
//return .lightContent // For light status bar | |
} | |
} |
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 Foundation | |
final class ConcealingTitleView: UIView { | |
private let label = UILabel() | |
private var contentOffset: CGFloat = 0 { | |
didSet { | |
label.frame.origin.y = titleVerticalPositionAdjusted(by: contentOffset) | |
} | |
} | |
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
import UIKit | |
let vc = UIViewController() | |
vc.view.backgroundColor = .whiteColor() | |
vc.navigationItem.title = "This is a view controller" | |
let searchController = UISearchController(searchResultsController: nil) | |
//searchController.searchBar.barTintColor = UIColor(red:0.16, green:0.45, blue:0.72, alpha:1) |