From 2a44107ee0a87c24ba5f5ac703af9ad995144a96 Mon Sep 17 00:00:00 2001 From: hhhello Date: Fri, 20 Sep 2024 14:50:18 +0900 Subject: [PATCH] fix: Avatar initializer --- Source/DDS/Component/Avatar/Avatar.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/DDS/Component/Avatar/Avatar.swift b/Source/DDS/Component/Avatar/Avatar.swift index 287c9c8..0163c72 100644 --- a/Source/DDS/Component/Avatar/Avatar.swift +++ b/Source/DDS/Component/Avatar/Avatar.swift @@ -27,6 +27,11 @@ public struct DodamAvatar: View { private let url: String? private let size: Size + init(url: String?, size: Size) { + self.url = url + self.size = size + } + public static func extraSmall(url: String?) -> DodamAvatar { .init(url: url, size: .extraSmall) }