Skip to content

Commit b6f8771

Browse files
committed
이미지 처리 다른 시도했는데 그저그럼
1 parent 49a2c6b commit b6f8771

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

Clone App/Instagram/Instagram.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@
111111
156E22E7290D6EBD0026B0C3 /* Instagram */ = {
112112
isa = PBXGroup;
113113
children = (
114+
15ACA71C290D79310011E665 /* API */,
114115
15ACA73A290D7FF80011E665 /* ViewModel */,
115116
15ACA733290D79ED0011E665 /* Utils */,
116117
15ACA730290D79C30011E665 /* Private */,
117118
15ACA722290D79520011E665 /* View */,
118119
15ACA721290D79480011E665 /* Model */,
119-
15ACA71C290D79310011E665 /* API */,
120120
15ACA70A290D77600011E665 /* Controller */,
121121
156E22E8290D6EBD0026B0C3 /* AppDelegate.swift */,
122122
156E22EA290D6EBD0026B0C3 /* SceneDelegate.swift */,

Clone App/Instagram/Instagram/Controller/MainHomeTabController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ extension MainHomeTabController {
3838

3939
let profile = templateNavigationController(unselectedImage: .imageLiteral(name: "profile_unselected"), selectedImage: .imageLiteral(name: "profile_selected"), rootVC: ProfileController(collectionViewLayout: profileLayout))
4040

41+
4142
viewControllers = [feed,search,imageSelector,notifications,profile]
4243
}
4344
}

Clone App/Instagram/Instagram/Controller/ProfileController.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ class ProfileController: UICollectionViewController {
1212
//MARK: - properties
1313
private let collectionHeaderReusableID = "UserProfileCollectionHeaderView"
1414
private let cellReusableId = "CollectionViewCell"
15+
var mainHomeDelegate: MainHomeTabController?
1516
private var user: UserInfoModel? {
1617
didSet {
1718
collectionView.reloadData()
18-
navigationItem.titleView?.reloadInputViews()
19+
1920
}
2021
}
21-
private var profileImage: UIImage? {
22+
var profileImage: UIImage? {
2223
didSet {
2324
collectionView.reloadData()
2425
}

Clone App/Instagram/Instagram/Controller/SearchController.swift

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,21 @@ import UIKit
99

1010
class SearchController: UIViewController {
1111

12+
//MARK: - Properties
13+
14+
//MARK: - LifeCycle
1215
override func viewDidLoad() {
1316
super.viewDidLoad()
14-
view.backgroundColor = .systemBlue
17+
view.backgroundColor = .white
18+
setupNavigationBar()
19+
}
20+
}
21+
22+
//MARK: - setupNavigation UI
23+
extension SearchController {
24+
25+
func setupNavigationBar() {
26+
let searchBar = UISearchController()
27+
navigationItem.searchController = searchBar
1528
}
1629
}

Clone App/Instagram/Instagram/View/Profile/ProfileHeader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ProfileHeader: UICollectionReusableView {
3636
override init(frame: CGRect) {
3737
super.init(frame: frame)
3838
backgroundColor = .white
39-
//initiateBackgroundWork()
39+
initiateBackgroundWork()
4040
setupSubview()
4141

4242
}

0 commit comments

Comments
 (0)