-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat] 홈 화면 - 구글 지도, 마이페이지 버튼 #8
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코멘트에 답변 남겨주시고, 수정사항 반영해서 다시 푸시 부탁드립니다!
**/xcshareddata/WorkspaceSettings.xcsettings | ||
Config.xcconfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
컨피그 파일이 생겼군요! 나중에 공유 부탁드려요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네~ gitignore때문에 머지 되면 공유드릴게요!
class AppDelegate: NSObject, UIApplicationDelegate { | ||
func application( | ||
_ application: UIApplication, | ||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? | ||
) -> Bool { | ||
let apiKey = Bundle.main.infoDictionary?["API_KEY"] as! String | ||
GMSServices.provideAPIKey(apiKey) | ||
|
||
return true | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delegate 파일을 App 폴더에 따로 만들어서 관리하는 것이 좋을 것 같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정했습니다! 감사해요:)
func myPageNavigationLink() -> some View { | ||
NavigationLink(destination: TempMyPageView()) { | ||
Image(systemName: "person.circle.fill") | ||
.resizable() | ||
.aspectRatio(contentMode: .fit) | ||
.frame(width: 40, height: 40) | ||
.background(Color.white) | ||
.foregroundStyle(.gray3) | ||
.clipShape(Circle()) | ||
.overlay { | ||
Circle().stroke(Color.white, lineWidth: 2) | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저는 이런 경우 Computed Property를 만들어서 관리하는데, Parameter가 따로 없는 경우에는 Computed Property로 만들어서 관리를 하는 것은 어떻게 생각하시나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋습니다! 수정했어요~!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
반영 감사합니다!
⭐️ Issue Number
🚩 Summary
1. 지도
Google Maps 사용을 위한 작업
UIViewControllerRepresentable
프로토콜을 채택한MapViewControllerBridge
를 생성했습니다.(Google Maps SDK는 SwiftUI 호환 뷰를 제공하지 않으며 UIKit을 기반으로 빌드되기 때문)
AppDelegate
를 구현했습니다.Google Maps API key 관리
2. 마이페이지 버튼
MyPage 버튼과 연결되는 뷰를 HomeView 파일 안에 임시로 만들었습니다(
TempMyPageView
).🙂 To Reviewers
나중에 Mapkit -> GoogleMap으로 변경하면 리소스가 들기에 처음부터 GoogleMap을 사용하는 게 낫다고 판단!
📷 Screenshots