UIImage
public extension UIImage
-
Declaration
Swift
static func loadFromModule(imageName: String, inBundle bundle: Bundle) -> UIImage?
-
Declaration
Swift
static func loadFromModule(imageName: String) -> UIImage?
-
Declaration
Swift
func createLocalURL() -> URL?
-
Declaration
Swift
public convenience init?(color: UIColor, size: CGSize = CGSize(width: 1, height: 1))
-
Declaration
Swift
func cropToCircle() -> UIImage?
-
Declaration
Swift
func resize(targetSize: CGSize) -> (UIImage, CGRect)
-
Declaration
Swift
func resized(toWidth width: CGFloat) -> UIImage?
-
Declaration
Swift
func resized(withPercentage percentage: CGFloat) -> UIImage?
-
Declaration
Swift
var isPortrait: Bool { get }
-
Declaration
Swift
var isLandscape: Bool { get }
-
Declaration
Swift
var breadth: CGFloat { get }
-
Declaration
Swift
var breadthSize: CGSize { get }
-
Declaration
Swift
var breadthRect: CGRect { get }
-
Declaration
Swift
func rounded(with color: UIColor, width: CGFloat) -> UIImage?
-
Declaration
Swift
convenience init?(imagecolor: UIColor, size: CGSize = CGSize(width: 1, height: 1))
-
Declaration
Swift
public class func gifImageWithData(_ data: Data) -> UIImage?
-
Declaration
Swift
public class func gifImageWithURL(_ gifUrl: String) -> UIImage?
-
Declaration
Swift
public class func gifImageWithName(_ name: String) -> UIImage?