Skip to content

Sprint Complete: Achieved MVP #130

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Initial Commit
  • Loading branch information
Clayton Watkins committed May 30, 2020
commit c85f1f1b962960b53c322ad0623374b9072cc181
14 changes: 12 additions & 2 deletions PasswordTextField/PasswordTextField/PasswordField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,20 @@ class PasswordField: UIControl {
private var strengthDescriptionLabel: UILabel = UILabel()

func setup() {
// Lay out your subviews here
//Giving our content view a background

addSubview(titleLabel)
// Lay out your subviews here
titleLabel.translatesAutoresizingMaskIntoConstraints = false
titleLabel.text = "ENTER PASSWORD"
titleLabel.font = labelFont
titleLabel.textColor = labelTextColor
addSubview(titleLabel)
NSLayoutConstraint.activate([
titleLabel.topAnchor.constraint(equalTo: self.topAnchor, constant: standardMargin)
titleLabel.leadingAnchor.constraint(equalTo: self.leadingAnchor, constant: standardMargin)
])


}

required init?(coder aDecoder: NSCoder) {
Expand Down