Skip to content

Commit

Permalink
[Feat] #4 - Maps SDK 초기화를 위해 AppDelegate 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
yurim830 committed Jan 8, 2025
1 parent 4195e98 commit 0e576c5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Staccato-iOS/Staccato-iOS/App/Staccato_iOSApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,29 @@
// Created by Gyunni on 1/2/25.
//

import GoogleMaps

import SwiftUI

@main
struct Staccato_iOSApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate

var body: some Scene {
WindowGroup {
ContentView()
}
}
}

// Maps SDK 초기화를 위해 AppDelegate 구현
class AppDelegate: NSObject, UIApplicationDelegate {
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
// Google Maps API 키 제공
GMSServices.provideAPIKey("YOUR_API_KEY")
return true
}
}

0 comments on commit 0e576c5

Please sign in to comment.