Files
GitHawk/Classes/View Controllers/UIPopoverPresentationController+SourceView.swift
Joe Rocca ca9c9df1df Tightened right bar items (#916)
* tightened right bar items, closes #896

* added UIBarButtonItem and UIPopoverPresentationController extensions
2017-11-10 12:39:40 -05:00

17 lines
342 B
Swift

//
// UIPopoverPresentationController+SourceView.swift
// Freetime
//
// Created by Joe Rocca on 11/10/17.
// Copyright © 2017 Ryan Nystrom. All rights reserved.
//
import Foundation
extension UIPopoverPresentationController {
func setSourceView(_ view: UIView) {
sourceView = view
sourceRect = view.bounds
}
}