-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from KCY-Fit-a-Pet/feat/93
๐จ pet ๋ฉค๋ฒ ๊ด๋ฆฌ UI ๊ตฌํ (์ถํ ์์ ํ์)
- Loading branch information
Showing
24 changed files
with
842 additions
and
93 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
Binary file modified
BIN
+23.8 KB
(110%)
...it-a-pet-client.xcworkspace/xcuserdata/maclove.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
38 changes: 38 additions & 0 deletions
38
fit-a-pet-client/fit-a-pet-client/Assets.xcassets/Colors/Danger.colorset/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,38 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "0.000", | ||
"green" : "0.000", | ||
"red" : "0.824" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "0.000", | ||
"green" : "0.000", | ||
"red" : "0.824" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
fit-a-pet-client/fit-a-pet-client/Extension/MemberManagementVCMethod.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,66 @@ | ||
// | ||
// MemberManagementVCMethod.swift | ||
// fit-a-pet-client | ||
// | ||
// Created by ์ตํฌ์ง on 2/23/24. | ||
// | ||
|
||
import UIKit | ||
|
||
protocol MemberListTableViewMethodDelegate: AnyObject { | ||
func pushViewController(_ viewController: UIViewController, animated: Bool) | ||
} | ||
|
||
class MemberListTableViewMethod: NSObject, UITableViewDataSource, UITableViewDelegate, MemberTableViewCellDelegate { | ||
weak var delegate: MemberListTableViewMethodDelegate? | ||
|
||
func didTapChangeName() { | ||
print("???") | ||
let nextVC = EditUserNameVC(title: "์ด๋ฆ ๋ณ๊ฒฝํ๊ธฐ") | ||
delegate?.pushViewController(nextVC, animated: true) | ||
} | ||
|
||
private var userDataArray: [String] = ["User 1", "User 2", "User 3"] | ||
|
||
// MARK: - UITableViewDataSource methods | ||
|
||
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { | ||
return userDataArray.count | ||
} | ||
|
||
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { | ||
let cell = tableView.dequeueReusableCell(withIdentifier: "MemberTableViewCell", for: indexPath) as! MemberTableViewCell | ||
cell.userDataView.profileUserName.text = userDataArray[indexPath.row] | ||
cell.delegate = self | ||
return cell | ||
} | ||
|
||
// MARK: - UITableViewDelegate methods | ||
|
||
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { | ||
return 76 | ||
} | ||
} | ||
|
||
class MemberInviteListTableViewMethod: NSObject, UITableViewDataSource, UITableViewDelegate { | ||
|
||
private var userDataArray: [String] = ["User 1", "User 2", "User 3"] | ||
|
||
// MARK: - UITableViewDataSource methods | ||
|
||
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { | ||
return userDataArray.count | ||
} | ||
|
||
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { | ||
let cell = tableView.dequeueReusableCell(withIdentifier: "InviteMemberTableViewCell", for: indexPath) as! InviteMemberTableViewCell | ||
cell.userDataView.profileUserName.text = userDataArray[indexPath.row] | ||
return cell | ||
} | ||
|
||
// MARK: - UITableViewDelegate methods | ||
|
||
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { | ||
return 76 | ||
} | ||
} |
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
44 changes: 44 additions & 0 deletions
44
fit-a-pet-client/fit-a-pet-client/UIElement/CustomSearchTextField.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,44 @@ | ||
|
||
import UIKit | ||
class CustomSearchTextField: UITextField { | ||
|
||
let imageView = UIImageView(frame: CGRect(x: 0, y: 0, width: 20, height: 20)) | ||
let iconContainerView: UIView = UIView() | ||
|
||
var placeholderText: String? { | ||
didSet { | ||
self.placeholder = placeholderText | ||
} | ||
} | ||
|
||
override init(frame: CGRect) { | ||
super.init(frame: frame) | ||
commonInit() | ||
} | ||
|
||
required init?(coder: NSCoder) { | ||
super.init(coder: coder) | ||
commonInit() | ||
} | ||
|
||
private func commonInit() { | ||
imageView.image = UIImage(named: "search") | ||
iconContainerView.addSubview(imageView) | ||
|
||
self.font = .systemFont(ofSize: 14) | ||
self.layer.cornerRadius = 8 | ||
self.backgroundColor = UIColor(named: "Gray1") | ||
self.leftView = iconContainerView | ||
self.leftViewMode = .always | ||
|
||
imageView.snp.makeConstraints { make in | ||
make.leading.equalTo(iconContainerView).offset(10) | ||
make.centerY.equalTo(iconContainerView) | ||
} | ||
|
||
iconContainerView.snp.makeConstraints { make in | ||
make.width.equalTo(38) | ||
make.height.equalTo(20) | ||
} | ||
} | ||
} |
Oops, something went wrong.