Skip to content

Commit

Permalink
๐Ÿ’„ :: [#50] Add PostDetailView Top Title, Button
Browse files Browse the repository at this point in the history
  • Loading branch information
Xixn2 committed Nov 11, 2024
1 parent 78054ce commit d762fd6
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,32 @@
import SwiftUI

struct PostDetailView: View {
@Environment(\.dismiss) var dismiss

var body: some View {
VStack(spacing: 0) {
ExpoIOSAsset.Assets.leftBackButton.swiftUIImage

Spacer()
NavigationStack {
VStack(spacing: 0) {
ZStack {
HStack(spacing: 0) {
Button {
dismiss()
} label: {
ExpoIOSAsset.Assets.leftBackButton.swiftUIImage
.padding(.leading, 16)
}

Spacer()
}

HStack(spacing: 0) {
Text("2024 AI๊ด‘์ฃผ๋ฏธ๋ž˜๊ต์œก๋ฐ•๋žŒํšŒ")
.expoFont(.body1B)
}

}
Spacer()
}
.navigationBarBackButtonHidden(true)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ struct SigninView: View {
}
}
}
//
//#Preview {
// SigninView(viewModel: AuthViewModel())
//}

#Preview {
SigninView(viewModel: AuthViewModel())
}
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,6 @@ struct SignupView: View {
}
}

//#Preview {
// SignupView(viewModel: AuthViewModel())
//}
#Preview {
SignupView(viewModel: AuthViewModel())
}

0 comments on commit d762fd6

Please sign in to comment.