Rename to rossler\\attix
This commit is contained in:
24
App/Utilities/UIEdgeInsets+Layout.swift
Normal file
24
App/Utilities/UIEdgeInsets+Layout.swift
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// UIEdgeInsets+Layout.swift
|
||||
// SBrowser
|
||||
//
|
||||
// Created by James Magahern on 7/23/20.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
extension UIEdgeInsets
|
||||
{
|
||||
var negative: UIEdgeInsets {
|
||||
get {
|
||||
return UIEdgeInsets(top: -top, left: -left, bottom: -bottom, right: -right)
|
||||
}
|
||||
}
|
||||
|
||||
func subtracting(_ other: UIEdgeInsets) -> UIEdgeInsets {
|
||||
return UIEdgeInsets(top: self.top - other.top,
|
||||
left: self.left - other.left,
|
||||
bottom: self.bottom - other.bottom,
|
||||
right: self.right - other.right)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user