This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ContentView.swift | |
| // | |
| import SwiftUI | |
| struct ContentView: View { | |
| @State var isAuthenticated = Dependencies.authService.hasSignedInBefore | |
| @State var state: String = Dependencies.authService.hasSignedInBefore ? "You are signed in!" : "You are not signed in" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Dependencies.swift | |
| // | |
| import Foundation | |
| struct Dependencies { | |
| private static let migrationRepository: AuthStateRepository = SharedUserDefaultsAuthStateRepository(appGroupIdentifier: "group.com.mydomain.shared") | |
| private static let authStateRepository: AuthStateRepository = KeychainAuthStateRepository(accessGroup: "<teamId>.com.mydomain.shared", | |
| serviceName: "com.mydomain.myapp", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Dependencies.swift | |
| // | |
| import Foundation | |
| struct Dependencies { | |
| private static let authStateRepository: AuthStateRepository = SharedUserDefaultsAuthStateRepository(appGroupIdentifier: "group.com.mydomain.shared") | |
| private static let auth0AuthService = Auth0AuthService(configuration: Auth0Configuration(openIdDomain: "<openIdDomain>", | |
| openIdClientId: "<openIdClientId>", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Dependencies.swift | |
| // | |
| import Foundation | |
| struct Dependencies { | |
| private static let authStateRepository: AuthStateRepository = KeychainAuthStateRepository(accessGroup: "<teamId>.com.mydomain.shared", | |
| serviceName: "com.mydomain.myapp", | |
| accountName: "My App", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Dependencies.swift | |
| // | |
| import Foundation | |
| struct Dependencies { | |
| private static let authStateRepository: AuthStateRepository = KeychainAuthStateRepository(accessGroup: "<teamId>.com.mydomain.shared", | |
| serviceName: "com.mydomain.myapp", | |
| accountName: "My App") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // UIScrollView+scrollToTop.swift | |
| // | |
| import Foundation | |
| import UIKit | |
| extension UIScrollView { | |
| func scrollToTop(_ completion: (() -> Void)? = nil) { | |
| guard contentOffset.y != -adjustedContentInset.top else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // SinglePageController.swift | |
| // | |
| import UIKit | |
| import Cartography | |
| class SinglePageController: UIViewController { | |
| private func removeChildViewControllers() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // SceneFlowController.swift | |
| // | |
| import UIKit | |
| protocol SceneFlowController: AnyObject { | |
| func signedOut() | |
| func signedIn() | |
| func completedOnboarding() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ChatHostScanner.swift | |
| // | |
| import Foundation | |
| import Combine | |
| struct DiscoveredChatHost { | |
| let name: String? | |
| let uuid: UUID |