Skip to content

Commit

Permalink
feat/#17
Browse files Browse the repository at this point in the history
실시간으로 머문데이터 반영
  • Loading branch information
EvelynMacbookPro committed Aug 21, 2024
1 parent 0d1313e commit e323aab
Show file tree
Hide file tree
Showing 10 changed files with 169 additions and 272 deletions.
18 changes: 18 additions & 0 deletions CloverManager.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// CloverManager.swift
// MC2Maps
//
// Created by Evelyn Hong on 8/21/24.
//

import Foundation
import CoreLocation

class CloverManager: ObservableObject {
@Published var isCloverConditionMet: Bool = false

func checkCloverGenerationCondition(location: CLLocation) {
// 조건 확인 후, 조건이 충족되면 isCloverConditionMet를 true로 설정
self.isCloverConditionMet = true // 예시로 조건을 충족시킴
}
}
8 changes: 4 additions & 4 deletions MC2Maps.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
/* Begin PBXBuildFile section */
A88329EE2C6DEBCC00D6CC87 /* MapLocation.swift in Sources */ = {isa = PBXBuildFile; fileRef = A88329ED2C6DEBCC00D6CC87 /* MapLocation.swift */; };
A88329F22C71EA6100D6CC87 /* ModalView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A88329F12C71EA6100D6CC87 /* ModalView.swift */; };
A88CEC722C74F48200B4B1EF /* TimerManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = A88CEC712C74F48200B4B1EF /* TimerManager.swift */; };
A88CEC7A2C75CA5100B4B1EF /* AnnotationItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = A88CEC792C75CA5100B4B1EF /* AnnotationItem.swift */; };
A88CEC7C2C75CB1200B4B1EF /* LocationManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = A88CEC7B2C75CB1200B4B1EF /* LocationManager.swift */; };
A88CEC7E2C7600B500B4B1EF /* CloverManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = A88CEC7D2C7600B500B4B1EF /* CloverManager.swift */; };
EAF2746D2C1C6B2C00D90AEA /* MC2MapsApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAF2746C2C1C6B2C00D90AEA /* MC2MapsApp.swift */; };
EAF2746F2C1C6B2C00D90AEA /* MapsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAF2746E2C1C6B2C00D90AEA /* MapsView.swift */; };
EAF274712C1C6B2E00D90AEA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EAF274702C1C6B2E00D90AEA /* Assets.xcassets */; };
Expand All @@ -21,9 +21,9 @@
/* Begin PBXFileReference section */
A88329ED2C6DEBCC00D6CC87 /* MapLocation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MapLocation.swift; sourceTree = "<group>"; };
A88329F12C71EA6100D6CC87 /* ModalView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ModalView.swift; sourceTree = "<group>"; };
A88CEC712C74F48200B4B1EF /* TimerManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimerManager.swift; sourceTree = "<group>"; };
A88CEC792C75CA5100B4B1EF /* AnnotationItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnnotationItem.swift; sourceTree = "<group>"; };
A88CEC7B2C75CB1200B4B1EF /* LocationManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocationManager.swift; sourceTree = "<group>"; };
A88CEC7D2C7600B500B4B1EF /* CloverManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CloverManager.swift; sourceTree = "<group>"; };
EAF274692C1C6B2C00D90AEA /* MC2Maps.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MC2Maps.app; sourceTree = BUILT_PRODUCTS_DIR; };
EAF2746C2C1C6B2C00D90AEA /* MC2MapsApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MC2MapsApp.swift; sourceTree = "<group>"; };
EAF2746E2C1C6B2C00D90AEA /* MapsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MapsView.swift; sourceTree = "<group>"; };
Expand All @@ -46,9 +46,9 @@
EAF274602C1C6B2C00D90AEA = {
isa = PBXGroup;
children = (
A88CEC7D2C7600B500B4B1EF /* CloverManager.swift */,
A88CEC7B2C75CB1200B4B1EF /* LocationManager.swift */,
A88CEC792C75CA5100B4B1EF /* AnnotationItem.swift */,
A88CEC712C74F48200B4B1EF /* TimerManager.swift */,
A88329ED2C6DEBCC00D6CC87 /* MapLocation.swift */,
EAF2746B2C1C6B2C00D90AEA /* MC2Maps */,
EAF2746A2C1C6B2C00D90AEA /* Products */,
Expand Down Expand Up @@ -156,8 +156,8 @@
files = (
EAF2746F2C1C6B2C00D90AEA /* MapsView.swift in Sources */,
EAF2746D2C1C6B2C00D90AEA /* MC2MapsApp.swift in Sources */,
A88CEC722C74F48200B4B1EF /* TimerManager.swift in Sources */,
A88CEC7C2C75CB1200B4B1EF /* LocationManager.swift in Sources */,
A88CEC7E2C7600B500B4B1EF /* CloverManager.swift in Sources */,
A88329F22C71EA6100D6CC87 /* ModalView.swift in Sources */,
A88329EE2C6DEBCC00D6CC87 /* MapLocation.swift in Sources */,
A88CEC7A2C75CA5100B4B1EF /* AnnotationItem.swift in Sources */,
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion MC2Maps/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "Logo.png",
"filename" : "Logo_.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
Expand Down
Binary file removed MC2Maps/Assets.xcassets/AppIcon.appiconset/Logo.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 4 additions & 6 deletions MC2Maps/MC2MapsApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//

import SwiftUI

@main
struct MC2MapsApp: App {

var body: some Scene {
WindowGroup {
MapsView()
}
}
}
WindowGroup { MapsView()
// TimerManager를 전역적으로 사용할 수 있도록 환경 객체로 제공
} } }
Loading

0 comments on commit e323aab

Please sign in to comment.