Skip to content

Commit

Permalink
[Feat] #4 - 지도 및 마이페이지 버튼 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yurim830 committed Jan 8, 2025
1 parent 8931169 commit 8eb73ad
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion Staccato-iOS/Staccato-iOS/Presentation/View/Home/HomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,42 @@
// Created by 김유림 on 1/9/25.
//

import GoogleMaps

import SwiftUI

struct HomeView: View {

var body: some View {
NavigationView {
ZStack(alignment: .topLeading) {
MapViewControllerBridge()
.edgesIgnoringSafeArea(.all)

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)
}
}
.padding(20)
}
}
}
}

struct TempMyPageView: View {
var body: some View {
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
Text("My Page")
.font(.largeTitle)
.fontWeight(.bold)
.padding()
}
}

Expand Down

0 comments on commit 8eb73ad

Please sign in to comment.