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
// boilerplate for uiview subclass that is intended to be used as uiviewcontrollers | |
// root view using constraints. | |
class CustomView: UIView { | |
// custom views should override this to return true if | |
// they cannot layout correctly using autoresizing. | |
// from apple docs https://developer.apple.com/documentation/uikit/uiview/1622549-requiresconstraintbasedlayout | |
override class var requiresConstraintBasedLayout: Bool { | |
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
// | |
// CGSize+Utilities.swift | |
// STHLMPubCrawl | |
// | |
// Created by Agust Rafnsson on 02/10/15. | |
// Copyright © 2015 Agust Rafnsson. All rights reserved. | |
// | |
import UIKit |