From d0efa4d23e9cf2072d84ecb03e4980d6d88a30c5 Mon Sep 17 00:00:00 2001 From: LeeJoEun-01 Date: Fri, 2 Dec 2022 15:06:03 +0900 Subject: [PATCH] =?UTF-8?q?[#183]=20YDSLabel=20autoLayout=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=ED=95=98=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AtomSampleViewController/LabelPageViewController.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/YDS-Storybook/AtomSampleViewController/LabelPageViewController.swift b/YDS-Storybook/AtomSampleViewController/LabelPageViewController.swift index e48f6d5e..5f0065c1 100644 --- a/YDS-Storybook/AtomSampleViewController/LabelPageViewController.swift +++ b/YDS-Storybook/AtomSampleViewController/LabelPageViewController.swift @@ -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) } } @@ -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 }