-
Notifications
You must be signed in to change notification settings - Fork 6
[Feat] #44 - Plus detail VC UI구현 #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
The head ref may contain hidden characters: "#44-PlusDetailVC\uAD6C\uD604"
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e7ee494
[fix] #39 courseDiscoveryVC UI 수정
lee-yeonwoo2 e7f20dd
[fix] #39 - Button 기능 수정
lee-yeonwoo2 f8f57c8
[feat] #44 - PlusDetailVC 구현
lee-yeonwoo2 141198a
[fix] #44 - Tabbar 숨김처리
lee-yeonwoo2 eff790a
[fix] #44 - Tabbar 안보이는 이슈 해결
lee-yeonwoo2 bd81aec
[fix] #44 - click event 추가
lee-yeonwoo2 3ef3652
[fix] #44 - Button 색상 변경
lee-yeonwoo2 87a3ec4
[fix] #44 - lint 오류 해결
lee-yeonwoo2 9d686bd
[fix] #44 - addtarget 함수 수정
lee-yeonwoo2 34e2eb5
[Merge] #44 - merge pull develop
lee-yeonwoo2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -19,5 +19,8 @@ | |
| "info" : { | ||
| "author" : "xcode", | ||
| "version" : 1 | ||
| }, | ||
| "properties" : { | ||
| "template-rendering-intent" : "original" | ||
| } | ||
| } | ||
This file contains hidden or 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
56 changes: 56 additions & 0 deletions
56
Runnect-iOS/Runnect-iOS/Presentation/CourseDiscovery/Reuse/MapCollectionViewController.swift
This file contains hidden or 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,56 @@ | ||
| // | ||
| // MapCollectionViewController.swift | ||
| // Runnect-iOS | ||
| // | ||
| // Created by YEONOO on 2023/01/05. | ||
| // | ||
|
|
||
| import UIKit | ||
|
|
||
| private let reuseIdentifier = "MapCollectionViewCell" | ||
|
|
||
| class MapCollectionViewController: UICollectionViewController { | ||
|
|
||
| override func viewDidLoad() { | ||
| super.viewDidLoad() | ||
| collectionView?.backgroundColor = .w1 | ||
| collectionView?.register(MapCollectionViewCell.self, forCellWithReuseIdentifier: reuseIdentifier) | ||
| } | ||
| } | ||
|
|
||
| // MARK: - Constants | ||
|
|
||
| let inset: UIEdgeInsets = UIEdgeInsets(top: 10, left: 16, bottom: 0, right: 16) | ||
| let lineSpacing: CGFloat = 10 | ||
| let interItemSpacing: CGFloat = 20 | ||
| let height: CGFloat = 164 | ||
|
|
||
| // MARK: - UICollectionViewDelegateFlowLayout | ||
|
|
||
| extension MapCollectionViewController: UICollectionViewDelegateFlowLayout { | ||
| func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { | ||
| let screenWidth = UIScreen.main.bounds.width | ||
| let doubleCellWidth = screenWidth - inset.left - inset.right - interItemSpacing | ||
| return CGSize(width: doubleCellWidth / 2, height: 164) | ||
| } | ||
| func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat { | ||
| return lineSpacing | ||
| } | ||
| func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat { | ||
| return interItemSpacing | ||
| } | ||
| func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets { | ||
| return inset | ||
| } | ||
| // MARK: - UICollectionViewDataSourc | ||
| override func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { | ||
| return 20 | ||
| } | ||
| override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { | ||
| guard let mapCell = collectionView.dequeueReusableCell( | ||
| withReuseIdentifier: MapCollectionViewCell.identifier, for: indexPath) | ||
| as? MapCollectionViewCell else { return UICollectionViewCell() } | ||
|
|
||
| return mapCell | ||
| } | ||
| } | ||
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 파일은 이제 사용하지 않고 있는거죠?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 복붙해서 쓰려고 남겨놓은 거긴한데...없앨까용 ..?🥺