Skip to content

Commit

Permalink
feat: 다운 샘플링 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
MaraMincho committed Jan 2, 2024
1 parent 86ff379 commit 876d356
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 1 deletion.
2 changes: 1 addition & 1 deletion iOS/Projects/Features/Home/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let project = Project.makeModule(
.combineExtension,
.coordinator,
.commonNetworkingKeyManager,
.downSampling
.downSampling,
],
testDependencies: []
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2023 kr.codesquad.boostcamp8. All rights reserved.
//

import ImageDownsampling
import UIKit

// MARK: - FeedImageCell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class FeedItemCollectionViewCell: UICollectionViewCell {
label.text = "2023.12.07"
label.font = .preferredFont(forTextStyle: .subheadline)
label.textColor = DesignSystemColor.primaryText
label.contentMode = .scaleAspectFit

label.translatesAutoresizingMaskIntoConstraints = false
return label
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//
// HomeViewController+Extension.swift
// HomeFeature
//
// Created by MaraMincho on 1/2/24.
// Copyright © 2024 kr.codesquad.boostcamp8. All rights reserved.
//

import UIKit

extension HomeViewController {}
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,38 @@ private extension HomeViewController {
],
like: 2
),

.init(
ID: 3,
publicID: "",
nickName: "고양이 애호가",
publishDate: .now,
profileImage: URL(string: "https://ca.slack-edge.com/T05N9HAKPFW-U05PCNTCV9N-8bbbd8736a14-512"),
sportText: "수영",
content: "고양이 애호가입니다. 차린건 없지만 고양이 보고가세요",
postImages: [
URL(string: "https://i.ytimg.com/vi/YCaGYUIfdy4/maxresdefault.jpg")!,
URL(string: "https://www.cats.org.uk/uploads/images/featurebox_sidebar_kids/grief-and-loss.jpg")!,
URL(string: "https://www.telegraph.co.uk/content/dam/pets/2017/01/06/1-JS117202740-yana-two-face-cat-news_trans_NvBQzQNjv4BqJNqHJA5DVIMqgv_1zKR2kxRY9bnFVTp4QZlQjJfe6H0.jpg?imwidth=450")!,
],
like: 4
),

.init(
ID: 4,
publicID: "",
nickName: "고양이 애호가",
publishDate: .now,
profileImage: URL(string: "https://ca.slack-edge.com/T05N9HAKPFW-U05PCNTCV9N-8bbbd8736a14-512"),
sportText: "수영",
content: "고양이 애호가입니다. 차린건 없지만 고양이 보고가세요",
postImages: [
URL(string: "https://i.ytimg.com/vi/YCaGYUIfdy4/maxresdefault.jpg")!,
URL(string: "https://www.cats.org.uk/uploads/images/featurebox_sidebar_kids/grief-and-loss.jpg")!,
URL(string: "https://www.telegraph.co.uk/content/dam/pets/2017/01/06/1-JS117202740-yana-two-face-cat-news_trans_NvBQzQNjv4BqJNqHJA5DVIMqgv_1zKR2kxRY9bnFVTp4QZlQjJfe6H0.jpg?imwidth=450")!,
],
like: 4
),
]
}
}

0 comments on commit 876d356

Please sign in to comment.