EZSwiftExtensions/Sources/UIEdgeInsets.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