Skip to content

Instantly share code, notes, and snippets.

View mspvirajpatel's full-sized avatar
🏠
Working from home

Virajkumar Patel mspvirajpatel

🏠
Working from home
View GitHub Profile
@mspvirajpatel
mspvirajpatel / RecordAudio.swift
Created August 7, 2019 09:01 — forked from hotpaw2/RecordAudio.swift
Swift Audio Recording class. Reads buffers of input samples from the microphone using the iOS RemoteIO Audio Unit API
//
// RecordAudio.swift
//
// This is a Swift class (updated for Swift 5)
// that uses the iOS RemoteIO Audio Unit
// to record audio input samples,
// (should be instantiated as a singleton object.)
//
// Created by Ronald Nicholson on 10/21/16.
// Copyright © 2017,2019 HotPaw Productions. All rights reserved.
import Foundation
import AuthenticationServices
@available(iOS 13.0, *)
open class AppleSignInManager: NSObject {
static let shared: AppleSignInManager = AppleSignInManager()
var userData: LoginUserData? = nil
var isShareImageVideo: Bool = false
public struct LoginUserData {
public var userId: String? = ""
public var userName: String? = ""
public var email: String? = ""
public var gender: Int = 0
public var birthday: String? = ""
public var about: String? = ""
public var photoUrl: String? = ""
public var idToken: String? = ""
public var accessToken: String? = ""