Fix typo
This commit is contained in:
parent
7a188bd922
commit
5603eb7bca
|
@ -17,7 +17,7 @@ extension BaseItemDto: PortraitImageStackable {
|
|||
id ?? "no id"
|
||||
}
|
||||
|
||||
public func imageURLContsructor(maxWidth: Int) -> URL {
|
||||
public func imageURLConstructor(maxWidth: Int) -> URL {
|
||||
switch self.itemType {
|
||||
case .episode:
|
||||
return getSeriesPrimaryImage(maxWidth: maxWidth)
|
||||
|
|
|
@ -68,7 +68,7 @@ extension BaseItemPerson: PortraitImageStackable {
|
|||
(id ?? "noid") + title + (subtitle ?? "nodescription") + blurHash + failureInitials
|
||||
}
|
||||
|
||||
public func imageURLContsructor(maxWidth: Int) -> URL {
|
||||
public func imageURLConstructor(maxWidth: Int) -> URL {
|
||||
self.getImage(baseURL: SessionManager.main.currentLogin.server.currentURI, maxWidth: maxWidth)
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
import Foundation
|
||||
|
||||
public protocol PortraitImageStackable {
|
||||
func imageURLContsructor(maxWidth: Int) -> URL
|
||||
func imageURLConstructor(maxWidth: Int) -> URL
|
||||
var title: String { get }
|
||||
var subtitle: String? { get }
|
||||
var blurHash: String { get }
|
||||
|
|
|
@ -43,7 +43,7 @@ struct PortraitImageHStackView<TopBarView: View, ItemType: PortraitImageStackabl
|
|||
selectedAction(item)
|
||||
} label: {
|
||||
VStack(alignment: horizontalAlignment) {
|
||||
ImageView(src: item.imageURLContsructor(maxWidth: Int(maxWidth)),
|
||||
ImageView(src: item.imageURLConstructor(maxWidth: Int(maxWidth)),
|
||||
bh: item.blurHash,
|
||||
failureInitials: item.failureInitials)
|
||||
.portraitPoster(width: maxWidth)
|
||||
|
|
|
@ -35,7 +35,7 @@ struct PortraitItemButton<ItemType: PortraitImageStackable>: View {
|
|||
selectedAction(item)
|
||||
} label: {
|
||||
VStack(alignment: horizontalAlignment) {
|
||||
ImageView(src: item.imageURLContsructor(maxWidth: Int(maxWidth)),
|
||||
ImageView(src: item.imageURLConstructor(maxWidth: Int(maxWidth)),
|
||||
bh: item.blurHash,
|
||||
failureInitials: item.failureInitials)
|
||||
.portraitPoster(width: maxWidth)
|
||||
|
|
Loading…
Reference in New Issue