Skip to content
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

Closed
wants to merge 3 commits into from

Conversation

lucianoschillagi
Copy link
Contributor

@lucianoschillagi lucianoschillagi commented Jun 16, 2020

What this PR does:
Creates a Offers Requests User Card

Checklist

  • Compiler warnings resolved
  • Linter warnings resolved
  • User-facing strings in Localizable.strings file
  • Unused code, print statements, and comments removed

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!

@lucianoschillagi
Copy link
Contributor Author

1

Copy link
Contributor

@ethanswift ethanswift left a 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

Comment on lines 36 to 48
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
Copy link
Contributor

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.

Copy link
Contributor Author

@lucianoschillagi lucianoschillagi Jun 17, 2020

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!

Copy link
Contributor Author

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.

Comment on lines 36 to 40
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
Copy link
Contributor

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.

Copy link
Contributor Author

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)

@lucianoschillagi
Copy link
Contributor Author

lucianoschillagi commented Jun 17, 2020

Screen Shot 2020-06-18 at 11 12 45 PM

last update - thursday 18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feed/Offer-Request Card Layout
2 participants