Skip to content

Commit

Permalink
[Feat/#19] BackgroundView 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe0929 committed Jan 6, 2024
1 parent 530ad1f commit c6755da
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
8 changes: 8 additions & 0 deletions HMH_iOS/HMH_iOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
36A3D9D02B409D35007EA272 /* Pretendard-ExtraLight.otf in Resources */ = {isa = PBXBuildFile; fileRef = 36A3D9C72B409D35007EA272 /* Pretendard-ExtraLight.otf */; };
36A3D9D12B409D35007EA272 /* Pretendard-Bold.otf in Resources */ = {isa = PBXBuildFile; fileRef = 36A3D9C82B409D35007EA272 /* Pretendard-Bold.otf */; };
36A3D9D22B409D35007EA272 /* Pretendard-Thin.otf in Resources */ = {isa = PBXBuildFile; fileRef = 36A3D9C92B409D35007EA272 /* Pretendard-Thin.otf */; };
36E05FE42B487911005B633E /* GrayBackgroundView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36E05FE32B487911005B633E /* GrayBackgroundView.swift */; };
36E05FE62B48825A005B633E /* AppCollectionReusableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36E05FE52B48825A005B633E /* AppCollectionReusableView.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -205,6 +207,8 @@
36A3D9C72B409D35007EA272 /* Pretendard-ExtraLight.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Pretendard-ExtraLight.otf"; sourceTree = "<group>"; };
36A3D9C82B409D35007EA272 /* Pretendard-Bold.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Pretendard-Bold.otf"; sourceTree = "<group>"; };
36A3D9C92B409D35007EA272 /* Pretendard-Thin.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Pretendard-Thin.otf"; sourceTree = "<group>"; };
36E05FE32B487911005B633E /* GrayBackgroundView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GrayBackgroundView.swift; sourceTree = "<group>"; };
36E05FE52B48825A005B633E /* AppCollectionReusableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppCollectionReusableView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -689,6 +693,8 @@
isa = PBXGroup;
children = (
3666C8A02B485CC800564874 /* TitleCollectionReusableView.swift */,
36E05FE32B487911005B633E /* GrayBackgroundView.swift */,
36E05FE52B48825A005B633E /* AppCollectionReusableView.swift */,
);
path = HeaderFooterView;
sourceTree = "<group>";
Expand Down Expand Up @@ -855,6 +861,7 @@
buildActionMask = 2147483647;
files = (
3666C8A12B485CC800564874 /* TitleCollectionReusableView.swift in Sources */,
36E05FE42B487911005B633E /* GrayBackgroundView.swift in Sources */,
0B50F9CF2B369813000C5046 /* HomeViewController.swift in Sources */,
0B2C2D412B4572240023CCFA /* HMHSelectButton.swift in Sources */,
0B8A89BC2B369F2D00688BA6 /* UIView+.swift in Sources */,
Expand Down Expand Up @@ -894,6 +901,7 @@
0BC0EBD22B493B6B003EF5D4 /* OnboardingProgressView.swift in Sources */,
36A3D9BA2B3EBC65007EA272 /* UIButton+.swift in Sources */,
3666C88F2B471C5800564874 /* TabBarController.swift in Sources */,
36E05FE62B48825A005B633E /* AppCollectionReusableView.swift in Sources */,
3666C88B2B471B0D00564874 /* String.swift in Sources */,
3666C89B2B48516500564874 /* ChallengeView.swift in Sources */,
3666C88D2B471B1D00564874 /* UIImage+.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//
// GrayBackgroundView.swift
// HMH_iOS
//
// Created by 지희의 MAC on 1/6/24.
//

import UIKit

class GrayBackgroundView: UICollectionReusableView {
private let grayBackgroundView = UIView().then {
$0.backgroundColor = .gray7 //UIColor(red: 246, green: 247, blue: 251)
}

override init(frame: CGRect) {
super.init(frame: frame)
backgroundColor = .clear
addSubview(grayBackgroundView)

grayBackgroundView.snp.makeConstraints {
$0.leading.trailing.bottom.equalToSuperview()
$0.top.equalToSuperview().offset(-100)
}
}

required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}

0 comments on commit c6755da

Please sign in to comment.