What do you want to save?
Add Code snippet
New code examples in category Swift
-
Awgiedawgie 2022-03-03 04:35:24
swift copy video from photo library
import UIKit public protocol VideoPickerDelegate: class { func didSelect(url: URL?) } open class VideoPicker: NSObject { private let pickerController: UIImagePickerController private weak var presentationController: UIViewController? pr... Add solution -
A-312 2022-02-27 12:20:06
receive notificationcenter data in swift
let imageDataDict:[String: UIImage] = ["image": image] // post a notification NotificationCenter.default.post(name: NSNotification.Name(rawValue: "notificationName"), object: nil, userInfo: imageDataDict) // `default` is now a ... Add solution -
Awgiedawgie 2022-02-25 12:25:06
how to get key for dictionary in swift
var array_has_dictionary = [ // Start of array // Dictionary 1 [ "name" : "xxxx", "age" : "xxxx", "last_name":"xxx" ], // Dictionary 2 [ "name" ... Add solution -
Awgiedawgie 2022-02-22 23:40:16
how to recieve hex value from NSData swift
extension NSData { func hexString() -> String { return UnsafeBufferPointer<UInt8>(start: UnsafePointer<UInt8>(bytes), count: length) .reduce("") { $0 + String(format: "%02x", $1) } } } Add solution