mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
530 B
Swift
18 lines
530 B
Swift
import UIKit
|
|
|
|
extension UIEdgeInsets {
|
|
|
|
public init(uniform value: CGFloat) {
|
|
self.init(top: value, left: value, bottom: value, right: value)
|
|
}
|
|
|
|
public init(top: CGFloat, leading: CGFloat, bottom: CGFloat, trailing: CGFloat) {
|
|
self.init(
|
|
top: top,
|
|
left: (Singleton.hasAppContext && Singleton.appContext.isRTL ? trailing : leading),
|
|
bottom: bottom,
|
|
right: (Singleton.hasAppContext && Singleton.appContext.isRTL ? leading : trailing)
|
|
)
|
|
}
|
|
}
|