post debug
This commit is contained in:
parent
874e920f6f
commit
9a9d8038e2
@ -65,6 +65,7 @@ struct PostGridItem: View {
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
NavigationLink(destination: PostDetailView(post: post)) {
|
||||
VStack(alignment: .leading, spacing: 0) { // Убираем отступ между картинкой и текстом
|
||||
|
||||
// 1. Медиа контент
|
||||
@ -92,6 +93,7 @@ struct PostGridItem: View {
|
||||
HStack {
|
||||
|
||||
Button(action: {
|
||||
print("account \(post.id)")
|
||||
// пока ничего не делаем
|
||||
}) {
|
||||
HStack(spacing: 4) {
|
||||
@ -110,6 +112,7 @@ struct PostGridItem: View {
|
||||
Spacer()
|
||||
|
||||
Button(action: {
|
||||
print("like \(post.id)")
|
||||
// пока ничего не делаем
|
||||
}) {
|
||||
HStack(spacing: 4) {
|
||||
@ -131,4 +134,6 @@ struct PostGridItem: View {
|
||||
.clipped() // Обрезаем дочерние вью по закругленной форме родителя
|
||||
.shadow(color: Color.black.opacity(0.1), radius: 5, x: 0, y: 2)
|
||||
}
|
||||
.buttonStyle(PlainButtonStyle()) // Убираем стандартный стиль кнопки, чтобы не влиять на UI
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user