21 lines
392 B
Swift
21 lines
392 B
Swift
//
|
|
// UIEdgeInsets.swift
|
|
// EZSwiftExtensions
|
|
//
|
|
// Created by furuyan on 2017/01/19.
|
|
// Copyright © 2017年 Goktug Yilmaz. All rights reserved.
|
|
//
|
|
|
|
#if os(iOS) || os(tvOS)
|
|
|
|
import UIKit
|
|
|
|
extension UIEdgeInsets {
|
|
/// EZSE: Easier initialization of UIEdgeInsets
|
|
public init(inset: CGFloat) {
|
|
self.init(top: inset, left: inset, bottom: inset, right: inset)
|
|
}
|
|
}
|
|
|
|
#endif
|