Skip to content

Commit

Permalink
fix: Avatar initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhello0507 committed Sep 20, 2024
1 parent 7f869c3 commit 2a44107
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/DDS/Component/Avatar/Avatar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 2a44107

Please sign in to comment.