-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Design/#17 - 온보딩뷰, VC 파일 구성 및 화면 구현 / BaseView & BaseVC BackgroundColor 설정 위치 변경
- Loading branch information
Showing
19 changed files
with
454 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
Techl-Neo/Global/Resources/Assets.xcassets/onboarding-1.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+31.5 KB
...Neo/Global/Resources/Assets.xcassets/onboarding-1.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+99.9 KB
...Neo/Global/Resources/Assets.xcassets/onboarding-1.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+205 KB
...Neo/Global/Resources/Assets.xcassets/onboarding-1.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
Techl-Neo/Global/Resources/Assets.xcassets/onboarding-2.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+25.7 KB
...Neo/Global/Resources/Assets.xcassets/onboarding-2.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+80.9 KB
...Neo/Global/Resources/Assets.xcassets/onboarding-2.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+156 KB
...Neo/Global/Resources/Assets.xcassets/onboarding-2.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
Techl-Neo/Global/Resources/Assets.xcassets/onboarding-3.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+23.7 KB
...Neo/Global/Resources/Assets.xcassets/onboarding-3.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+75.4 KB
...Neo/Global/Resources/Assets.xcassets/onboarding-3.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+149 KB
...Neo/Global/Resources/Assets.xcassets/onboarding-3.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
Techl-Neo/Presentations/Onboarding/OnboardingCollectionViewCell.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// | ||
// OnboardingCollectionViewCell.swift | ||
// Techl-Neo | ||
// | ||
// Created by 문정호 on 2022/11/28. | ||
// | ||
|
||
import UIKit | ||
import SnapKit | ||
import Then | ||
|
||
class OnboardingCollectionViewCell: UICollectionViewCell { | ||
|
||
static let identifier = "OnboardingCollectionViewCell" | ||
|
||
let thumbnailImageView = UIImageView() | ||
let titleLabel = UILabel().then{ | ||
$0.textAlignment = .center | ||
$0.font = UIFont(name: "Apple SD Gothic Neo Bold", size: 28) | ||
} | ||
let descriptionLabel = UILabel().then{ | ||
$0.numberOfLines = 2 | ||
$0.textAlignment = .center | ||
$0.font = UIFont(name: "Apple SD Gothic Neo SemiBold", size: 22) | ||
} | ||
|
||
override init(frame: CGRect) { | ||
super.init(frame: frame) | ||
|
||
setUI() | ||
setConstraints() | ||
} | ||
|
||
required init?(coder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
|
||
func configure(_ message: OnboardingMessage) { | ||
thumbnailImageView.image = UIImage(named: message.imageName) | ||
titleLabel.text = message.title | ||
descriptionLabel.text = message.description | ||
} | ||
|
||
func setUI(){ | ||
contentView.addSubview(titleLabel) | ||
contentView.addSubview(descriptionLabel) | ||
contentView.addSubview(thumbnailImageView) | ||
} | ||
|
||
func setConstraints(){ | ||
titleLabel.snp.makeConstraints { make in | ||
make.top.greaterThanOrEqualTo(contentView.snp.top).offset(24) | ||
make.trailing.equalTo(contentView.snp.trailing).offset(-24) // x좌표 기준으로 -24가 되어야 하기 때문에 | ||
make.leading.equalTo(contentView.snp.leading).offset(24) | ||
|
||
} | ||
descriptionLabel.snp.makeConstraints { make in | ||
make.top.equalTo(titleLabel.snp.bottom).offset(3) | ||
make.trailing.equalTo(titleLabel.snp.trailing) | ||
make.leading.equalTo(titleLabel.snp.leading) | ||
} | ||
|
||
thumbnailImageView.snp.makeConstraints{ make in | ||
make.trailing.equalTo(titleLabel.snp.trailing) | ||
make.leading.equalTo(titleLabel.snp.leading) | ||
make.top.equalTo(descriptionLabel.snp.bottom).offset(31) | ||
make.height.equalTo(thumbnailImageView.snp.width).multipliedBy(1/1) //aspect ratio 1:1 | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
Techl-Neo/Presentations/Onboarding/OnboardingMessage.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// OnboardingMessage.swift | ||
// Techl-Neo | ||
// | ||
// Created by 문정호 on 2022/11/28. | ||
// | ||
|
||
import Foundation | ||
|
||
struct OnboardingMessage { | ||
let imageName: String | ||
let title: String | ||
let description: String | ||
} | ||
|
||
extension OnboardingMessage { | ||
static let messages: [OnboardingMessage] = [ | ||
OnboardingMessage(imageName: "onboarding-1", title: "DISCUSS", description: "기술서적의 후기와 담론을\n포럼에서 자유롭게 할 수 있어요"), | ||
OnboardingMessage(imageName: "onboarding-2", title: "READ TOGETHER", description: "북클럽/챌린지에서\n기술서적을 함께 읽어봐요."), | ||
OnboardingMessage(imageName: "onboarding-3", title: "BOOKMARK", description: "관심있는 서적들을 북마크하여\n새 활동을 모아볼 수 있어요.") | ||
] | ||
} |
Oops, something went wrong.