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 PlaygroundSupport | |
class MyViewController : UIViewController { | |
public func setupSearch() { | |
let searchController = UISearchController(searchResultsController: nil) | |
navigationItem.searchController = searchController | |
//navigationController?.navigationBar.sizeToFit() // This line fixes the issue by updating navigationBar's size | |
} | |
} |
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 | |
import UIKit | |
@IBDesignable | |
class HollowCircle: UIView { | |
@IBInspectable var internalRadius: CGFloat = 0 { | |
didSet { | |
createOverlay() | |
} | |
} |
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
// | |
// WUImageDownloader.swift | |
// WorkUp | |
// | |
// Created by Simon Lebedev on 9/6/17. | |
// Copyright © 2017 Simon. All rights reserved. | |
// | |
import UIKit | |
import AlamofireImage |
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
// | |
// NavigationVC.swift | |
// WorkUp | |
// | |
// Created by Simon on 4/23/17. | |
// Copyright © 2017 Simon. 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 BEMCheckBox | |
//BEMCheckBox does not have any text or image next to the checkbox itself | |
//This class helps a bit with that | |
@IBDesignable | |
class BEMCheckBoxWithView: BEMCheckBox { | |
//this is the view that stands near checkbox |
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
// | |
// BaseVC.swift | |
// | |
// Created by Simon on 4/23/17. | |
// Copyright © 2017 Simon. All rights reserved. | |
// | |
import UIKit | |
/* |