Skip to content

Instantly share code, notes, and snippets.

View MMnasrabadi's full-sized avatar
🤠
i am happy

Mohammad Mohammadi Nasrabadi MMnasrabadi

🤠
i am happy
View GitHub Profile
@MMnasrabadi
MMnasrabadi / DocumentPicker.swift
Created December 16, 2020 15:39 — forked from aheze/DocumentPicker.swift
UIDocumentPickerViewController example in Swift 5. Bug fixed version of this article: https://medium.com/flawless-app-stories/a-swifty-way-to-pick-documents-59cad1988a8a
//
// DocumentPicker.swift
import UIKit
import MobileCoreServices
protocol DocumentDelegate: class {
func didPickDocument(document: Document?)
}
Registered Name: https://zhile.io
License Key: 48891cf209c6d32bf4
@MMnasrabadi
MMnasrabadi / EntryPoint.swift
Created July 8, 2024 06:25 — forked from IanKeen/EntryPoint.swift
Example main.swift
import Foundation
import SwiftUI
let isUITesting = /* your UI test detection here */
@main
struct EntryPoint {
static func main() {
if isUITesting {
UITestApp.main()