15 lines
425 B
Swift
15 lines
425 B
Swift
|
//
|
||
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
|
||
|
public extension UIEdgeInsets {
|
||
|
public init(top: CGFloat, leading: CGFloat, bottom: CGFloat, trailing: CGFloat) {
|
||
|
self.init(top: top,
|
||
|
left: CurrentAppContext().isRTL ? trailing : leading,
|
||
|
bottom: bottom,
|
||
|
right: CurrentAppContext().isRTL ? leading : trailing)
|
||
|
}
|
||
|
}
|