diff --git a/SwiftBuddiesIOS/Targets/FeedModule/Sources/Sources/FeedCell.swift b/SwiftBuddiesIOS/Targets/FeedModule/Sources/Sources/FeedCell.swift index f4e51c4..91ea7a1 100644 --- a/SwiftBuddiesIOS/Targets/FeedModule/Sources/Sources/FeedCell.swift +++ b/SwiftBuddiesIOS/Targets/FeedModule/Sources/Sources/FeedCell.swift @@ -14,9 +14,9 @@ struct FeedCell: View { var body: some View { VStack { - FeedCellHeaderView(post: PostModel.MockPosts[0]) - FeedCellContentView(post: PostModel.MockPosts[1]) - FeedCellCountersView(post: PostModel.MockPosts[2]) + FeedCellHeaderView(post: post) + FeedCellContentView(post: post) + FeedCellCountersView(post: post) Divider() diff --git a/SwiftBuddiesIOS/Targets/FeedModule/Sources/Sources/FeedCellContentView.swift b/SwiftBuddiesIOS/Targets/FeedModule/Sources/Sources/FeedCellContentView.swift index bcf133d..4be7ad6 100644 --- a/SwiftBuddiesIOS/Targets/FeedModule/Sources/Sources/FeedCellContentView.swift +++ b/SwiftBuddiesIOS/Targets/FeedModule/Sources/Sources/FeedCellContentView.swift @@ -7,12 +7,13 @@ // import SwiftUI +import Design struct FeedCellContentView: View { let post: PostModel var body: some View { - // MARK: - post mesage + // MARK: - post message Text(post.content) .frame(maxWidth: .infinity, alignment: .leading) .font(.footnote) @@ -20,8 +21,8 @@ struct FeedCellContentView: View { .padding(.top, 4) // MARK: - post image - if let imageUrl = post.imageUrl, !imageUrl.isEmpty { - Image(imageUrl) + if let image = post.imageUrl, !image.isEmpty { + Image(image, bundle: DesignResources.bundle) .resizable() .scaledToFit() }