Skip to content

Commit 0195cfb

Browse files
committed
feat: 향상된 경로 탐색 및 업데이트된 앱 이미지 #16
- 경로 소요 시간 표시를 위한 RemainingTimeCard 컴포넌트 추가 - 지도 마커 관리 및 경로 시각화 개선 - 앱 아이콘 및 온보딩 로고 이미지 업데이트 - 위치 서비스 비동기 처리 오류 수정 - 장소별 체류 가능 시간(분) 표시 기능 추가
1 parent c5c6030 commit 0195cfb

29 files changed

Lines changed: 623 additions & 76 deletions

File tree

Projects/App/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"images" : [
33
{
4-
"filename" : "darklogo 1.png",
4+
"filename" : "Group 1000003826.png",
55
"idiom" : "universal",
66
"platform" : "ios",
77
"size" : "1024x1024"
@@ -13,7 +13,7 @@
1313
"value" : "dark"
1414
}
1515
],
16-
"filename" : "darklogo 2.png",
16+
"filename" : "Group 1000003825.png",
1717
"idiom" : "universal",
1818
"platform" : "ios",
1919
"size" : "1024x1024"
228 KB
Loading
228 KB
Loading
Binary file not shown.
Binary file not shown.

Projects/Domain/UseCase/Sources/Location/LocationUseCase.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,42 +44,42 @@ public struct LocationUseCaseImpl: LocationUseCaseInterface {
4444
public init() {}
4545

4646
public func getAuthorizationStatus() async -> CLAuthorizationStatus {
47-
let locationManager = LocationPermissionManager.shared
47+
let locationManager = await LocationPermissionManager.shared
4848
return await locationManager.authorizationStatus
4949
}
5050

5151
public func requestLocationPermission() async -> CLAuthorizationStatus {
52-
let locationManager = LocationPermissionManager.shared
52+
let locationManager = await LocationPermissionManager.shared
5353
return await locationManager.requestLocationPermission()
5454
}
5555

5656
public func requestFullAccuracy() async {
57-
let locationManager = LocationPermissionManager.shared
57+
let locationManager = await LocationPermissionManager.shared
5858
await locationManager.requestFullAccuracy()
5959
}
6060

6161
public func startLocationUpdates(
6262
onUpdate: @escaping @Sendable (CLLocation) -> Void,
6363
onError: @escaping @Sendable (Error) -> Void
6464
) async {
65-
let locationManager = LocationPermissionManager.shared
65+
let locationManager = await LocationPermissionManager.shared
6666
await locationManager.setLocationUpdateCallback(onUpdate)
6767
await locationManager.setLocationErrorCallback(onError)
6868
await locationManager.startLocationUpdates()
6969
}
7070

7171
public func stopLocationUpdates() async {
72-
let locationManager = LocationPermissionManager.shared
72+
let locationManager = await LocationPermissionManager.shared
7373
await locationManager.stopLocationUpdates()
7474
}
7575

7676
public func requestCurrentLocation() async throws -> CLLocation? {
77-
let locationManager = LocationPermissionManager.shared
77+
let locationManager = await LocationPermissionManager.shared
7878
return try await locationManager.requestCurrentLocation()
7979
}
8080

8181
public func isLocationServicesEnabled() async -> Bool {
82-
let locationManager = LocationPermissionManager.shared
82+
let locationManager = await LocationPermissionManager.shared
8383
return await locationManager.isLocationServicesEnabled()
8484
}
8585
}
@@ -95,4 +95,4 @@ extension DependencyValues {
9595

9696
private enum LocationUseCaseKey: DependencyKey {
9797
static let liveValue: LocationUseCaseInterface = LocationUseCaseImpl()
98-
}
98+
}

Projects/Domain/UseCase/Sources/Place/PlaceUseCaseImpl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public struct PlaceUseCaseImpl: PlaceUseCaseInterface {
236236
coordinate: CLLocationCoordinate2D(latitude: entity.lat, longitude: entity.lon),
237237
hasDetail: false,
238238
imageURL: entity.imageURL,
239-
badgeText: "",
239+
badgeText: entity.stayableMinutes > 0 ? "\(entity.stayableMinutes)분 체류 가능" : "",
240240
subtitle: entity.category.title,
241241
statusText: "",
242242
closingText: "",

0 commit comments

Comments
 (0)