From 5390cf5450b5776be94c6ed2829bcddb469f2285 Mon Sep 17 00:00:00 2001 From: Gyuni Date: Thu, 26 Aug 2021 16:22:12 +0900 Subject: [PATCH] =?UTF-8?q?[#66]=20ProfileImageView=EC=97=90=20extraSmall?= =?UTF-8?q?=20size=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProfileImageViewPageViewController.swift | 4 ++-- YDS/Source/Atom/YDSProfileImageView.swift | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/YDS-Storybook/AtomSampleViewController/ProfileImageViewPageViewController.swift b/YDS-Storybook/AtomSampleViewController/ProfileImageViewPageViewController.swift index 0c6c151d..e22a5ff3 100644 --- a/YDS-Storybook/AtomSampleViewController/ProfileImageViewPageViewController.swift +++ b/YDS-Storybook/AtomSampleViewController/ProfileImageViewPageViewController.swift @@ -63,7 +63,7 @@ class ProfileImageViewPageViewController: StoryBookViewController { addOption(description: "size", cases: YDSProfileImageView.ProfileImageViewSize.allCases, - defaultIndex: 3) { [weak self] value in + defaultIndex: 4) { [weak self] value in self?.sampleProfileImageView.size = value } } @@ -107,5 +107,5 @@ class ProfileImageViewPageViewController: StoryBookViewController { } extension YDSProfileImageView.ProfileImageViewSize: CaseIterable { - public static var allCases: [YDSProfileImageView.ProfileImageViewSize] = [.small, .medium, .large, .extraLarge] + public static var allCases: [YDSProfileImageView.ProfileImageViewSize] = [.extraSmall, .small, .medium, .large, .extraLarge] } diff --git a/YDS/Source/Atom/YDSProfileImageView.swift b/YDS/Source/Atom/YDSProfileImageView.swift index f3b63de9..d27ef970 100644 --- a/YDS/Source/Atom/YDSProfileImageView.swift +++ b/YDS/Source/Atom/YDSProfileImageView.swift @@ -14,6 +14,7 @@ public class YDSProfileImageView: UIImageView { } public enum ProfileImageViewSize: Int { + case extraSmall = 32 case small = 36 case medium = 48 case large = 72