-
Notifications
You must be signed in to change notification settings - Fork 7
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
Luko/offer req card user profile #179
Conversation
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.
the last issue, View More Button hasn't been added
init(initials: String, name: String, location: String) { | ||
super.init(frame: .zero) | ||
|
||
// User Initials | ||
let userInitialsSize = CGSize(width: 100, height: 500) | ||
userInitials.frame.size = userInitialsSize | ||
userInitials.layer.cornerRadius = frame.size.height / 2 | ||
userInitials.text = initials | ||
userInitials.textAlignment = .center | ||
userInitials.backgroundColor = .fightPandemicsGhostWhite() | ||
userInitials.layer.borderWidth = 1 | ||
userInitials.layer.borderColor = UIColor.fightPandemicsNeonBlue().cgColor | ||
userInitials.translatesAutoresizingMaskIntoConstraints = false |
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.
this also takes the user image, if it has an image, otherwise it takes initials.
also its circle which you can make by giving a corner radius of half the height of the frame.
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.
Ok @ethanswift . I need your help on this, please. Tomorrow I will contact you...
Thanks!
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.
Ok. I added the View Button but It need layout configuration yet.
title.frame = CGRect(x: 0, y: 400, width: 200, height: 200) | ||
title.attributedText = NSAttributedString(string: tit, | ||
attributes: [NSAttributedString.Key.font: Fonts.poppinsBold.customFont(size: 22), NSAttributedString.Key.foregroundColor: UIColor.fightPandemicsNero()]) | ||
title.widthAnchor.constraint(equalToConstant: title.frame.width).isActive = true | ||
title.heightAnchor.constraint(equalToConstant: 50.0).isActive = true |
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.
title shouldn't get wrapped, its number of lines should be zero.
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.
I think that this is solved (see screenshot pls)
What this PR does:
Creates a Offers Requests User Card
Checklist
Which issue(s) this PR fixes:
Resolves #171 #172 #173
Special notes for reviewers:
The task is 75% done. I need help in order to resolve some layout-constraints issues.
Additional comments:
Maybe on this week we can finish it, come on!