Skip to content

Commit

Permalink
[#183] YDSLabel autoLayout 수정하기
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeJoEun-01 committed Dec 4, 2022
1 parent 4839cfb commit d0efa4d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ class LabelPageViewController: StoryBookViewController {

private func setAutolayout() {
sampleLabel.snp.makeConstraints {
$0.center.equalToSuperview()
$0.width.lessThanOrEqualToSuperview().inset(16)
$0.height.lessThanOrEqualToSuperview().inset(16)
$0.edges.equalToSuperview().inset(16)
}
}

Expand Down Expand Up @@ -76,7 +74,7 @@ class LabelPageViewController: StoryBookViewController {

addOption(description: "alignment",
cases: NSTextAlignment.allCases,
defaultIndex: 0) { [weak self] value in
defaultIndex: 1) { [weak self] value in
self?.sampleLabel.alignment = value
}

Expand Down

0 comments on commit d0efa4d

Please sign in to comment.