Skip to content

Commit

Permalink
[#66] ProfileImageView에 extraSmall size 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyuni committed Aug 27, 2021
1 parent 3d7a09b commit 5390cf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down Expand Up @@ -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]
}
1 change: 1 addition & 0 deletions YDS/Source/Atom/YDSProfileImageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class YDSProfileImageView: UIImageView {
}

public enum ProfileImageViewSize: Int {
case extraSmall = 32
case small = 36
case medium = 48
case large = 72
Expand Down

0 comments on commit 5390cf5

Please sign in to comment.