Skip to content

Instantly share code, notes, and snippets.

View apple-avadhesh's full-sized avatar
🎯
Focusing

Avadhesh Sharma apple-avadhesh

🎯
Focusing
View GitHub Profile
import Alamofire
import SwiftyJSON
class APIManager {
private init(){}
class func request(
_ url: URLConvertible,
method: HTTPMethod,
@apple-avadhesh
apple-avadhesh / library.swift
Created July 29, 2021 12:53 — forked from dilipiOSDeveloper/library.swift
Some Important Libraries and Links in Swift
let arrayOfTuples = [(0, 1), (0, 1), (0, 1), (0, 1), (0, 1), (0, 1), (0, 1), (0, 1), (0, 1), (0, 1)]
let flattenedArray = arrayOfTuples.flatMap{ [$0.0, $0.1] }
security find-generic-password -ga WIFI NAME
https://developer.usebutton.com/guides/merchants/universal-links
https://johncodeos.com/how-to-add-uicollectionview-inside-uitableviewcell-using-swift/
https://github.com/johncodeos-blog
struct PhotoPicker: UIViewControllerRepresentable {
let configuration: PHPickerConfiguration
@Binding var pickerResult: [UIImage]
@Binding var isPresented: Bool
func makeUIViewController(context: Context) -> PHPickerViewController {
let controller = PHPickerViewController(configuration: configuration)
controller.delegate = context.coordinator
return controller
}
func updateUIViewController(_ uiViewController: PHPickerViewController, context: Context) { }