Commit d8e312ae by Orkhan Alikhanov

Added ability to omit anchor for views

parent 85205879
......@@ -30,6 +30,12 @@
import UIKit
/// A protocol that's conformed by UIView and LayoutAnchor.
public protocol LayoutAnchorable { }
extension UIView: LayoutAnchorable { }
extension LayoutAnchor: LayoutAnchorable { }
public struct LayoutAnchor {
/// A weak reference to the view.
weak var view: UIView?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment