Skip to content

Commit

Permalink
Create UIRectEdge+Utilities
Browse files Browse the repository at this point in the history
Change-Id: Icee7ae133aee1afb55960a365e8e2b8cd909d63c
  • Loading branch information
gaetanzanella committed Nov 18, 2021
1 parent 2aa5bd6 commit 1b8196f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Modules/ADUtils/UIRectEdge+Utilities.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// UIRectEdge+Utilities.swift
// ADUtils
//
// Created by Gaétan Zanella on 18/11/2021.
//

import UIKit

extension UIRectEdge {

public static var horizontal: UIRectEdge {
[.right, .left]
}

public static var vertical: UIRectEdge {
[.bottom, .top]
}
}

0 comments on commit 1b8196f

Please sign in to comment.