You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
340 B
16 lines
340 B
//
|
|
// UIImage+Ext.swift
|
|
// GME Remit
|
|
//
|
|
// Created by InKwon James Kim on 2019/12/12.
|
|
// Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
extension UIImage {
|
|
func toBase64() -> String? {
|
|
guard let imageData = self.pngData() else { return nil }
|
|
return imageData.base64EncodedString()
|
|
}
|
|
}
|