-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: CollectionView 생성 및 ListCell 구현중
- Loading branch information
iOS-Yetti
committed
Aug 29, 2023
1 parent
fab5b8f
commit 5d3d094
Showing
11 changed files
with
90 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
excluded: | ||
- Diary/AppDelegate.swift | ||
- Diary/SceneDelegate.swift | ||
- Diary/Resource/AppDelegate.swift | ||
- Diary/Resource/SceneDelegate.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
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 @@ | ||
// | ||
// Diary - ViewController.swift | ||
// Created by yagom. | ||
// Copyright © yagom. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
final class DiaryListViewController: UIViewController { | ||
private let collectionView: UICollectionView = { | ||
let configuration = UICollectionLayoutListConfiguration(appearance: .plain) | ||
let layout = UICollectionViewCompositionalLayout.list(using: configuration) | ||
let view = UICollectionView(frame: .zero, collectionViewLayout: layout) | ||
view.translatesAutoresizingMaskIntoConstraints = false | ||
// view.register(<#T##cellClass: AnyClass?##AnyClass?#>, forCellWithReuseIdentifier: <#T##String#>) | ||
return view | ||
}() | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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,32 @@ | ||
// | ||
// DiaryCollectionViewCell.swift | ||
// Diary | ||
// | ||
// Created by idinaloq, yetti on 2023/08/29. | ||
// | ||
|
||
import UIKit | ||
|
||
class DiaryCollectionViewListCell: UICollectionViewListCell { | ||
private let titleLabel: UILabel = { | ||
let label = UILabel() | ||
label.text = "타이블레이블" | ||
label.translatesAutoresizingMaskIntoConstraints = false | ||
label.numberOfLines = 1 | ||
return label | ||
}() | ||
private let dateLabel: UILabel = { | ||
let label = UILabel() | ||
label.text = "데이트레이블" | ||
label.translatesAutoresizingMaskIntoConstraints = false | ||
label.numberOfLines = 1 | ||
return label | ||
}() | ||
private let previewLabel: UILabel = { | ||
let label = UILabel() | ||
label.text = "프리뷰레이블" | ||
label.translatesAutoresizingMaskIntoConstraints = false | ||
label.numberOfLines = 1 | ||
return label | ||
}() | ||
} |
This file was deleted.
Oops, something went wrong.