Skip to content

Commit

Permalink
[chore] #25 show multiple category chips
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangwook123 committed Jan 15, 2025
1 parent 384ec0f commit dacb2db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class GalleryDetailFeature: Feature {
var userImageURL: String = "https://reqres.in/img/faces/7-image.jpg"
var title: String = "가가가가가가"
var isMine: Bool = false
var category: String = "바다"
var category: [String] = ["바다", "", "캠핑"]
var nickname: String = "작심이"
var date: String = "1월 25일"
var count: Int = 9
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,16 @@ struct GalleryDetailView : View {
Image(systemName: "list.dash")
}
.resizable()
.scaledToFill()
.aspectRatio(1, contentMode: .fit)
.scaledToFill()
.aspectRatio(1, contentMode: .fit)

WithSuhyeonCategoryChip(title: galleryDetailFeature.state.category)
.padding(.top, 24)
.padding(.leading, 16)
HStack(spacing: 8) {
ForEach(galleryDetailFeature.state.category, id: \.self) { category in
WithSuhyeonCategoryChip(title: category)
}
}
.padding(.top, 24)
.padding(.leading, 16)

Text(galleryDetailFeature.state.title)
.font(.title02B)
Expand Down

0 comments on commit dacb2db

Please sign in to comment.