Skip to content

Commit

Permalink
#26 [Style] FeedGridView 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
soletree committed May 16, 2024
1 parent 991e7fa commit 1eaeee0
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions Score/Score/View/MyPage/FeedGridView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
//
// FeedGridView.swift
// Score
//
// Created by sole on 4/25/24.
//

import ComposableArchitecture
import SwiftUI

struct FeedGridView: View {
private let columnLayout: [GridItem] = [
.init(.flexible()),
.init(.flexible()),
.init(.flexible())
]

let store: StoreOf<FeedMainFeature>

var body: some View {
ScrollView {
LazyVGrid(columns: columnLayout,
spacing: 2) {
// - FIXME: Mock up view
ForEach(0..<299) { num in
Image(systemName: "photo.fill.on.rectangle.fill")
.foregroundStyle(.black)
.rectFrame(size: .deviceWidth / 3)
.background(
Color.brandColor(color: .gray2)
)
}
}
}
}
}

#Preview {
FeedGridView(store: .init(initialState: .init(),
reducer: { FeedMainFeature() }))
}

0 comments on commit 1eaeee0

Please sign in to comment.