forked from AcaMate/AcaMate_iOS
33 lines
619 B
Swift
33 lines
619 B
Swift
//
|
|
// AcaMateApp.swift
|
|
// AcaMate
|
|
//
|
|
// Created by Sean Kim on 11/26/24.
|
|
//
|
|
|
|
import SwiftUI
|
|
import Combine
|
|
|
|
import KakaoSDKCommon
|
|
import KakaoSDKAuth
|
|
|
|
@main
|
|
struct AcaMateApp: App {
|
|
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
|
|
var cancellables: Set<AnyCancellable> = []
|
|
|
|
init() {
|
|
printLog("APP INIT")
|
|
}
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
IntroView().onOpenURL { url in
|
|
if (AuthApi.isKakaoTalkLoginUrl(url)) {
|
|
_ = AuthController.handleOpenUrl(url: url)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|