Update Nuke usage

This commit is contained in:
kean 2022-12-26 14:16:21 -05:00
parent 71713759b7
commit aaba7f3337
5 changed files with 2 additions and 8 deletions

View file

@ -3,7 +3,6 @@ import Models
import DesignSystem
import Env
import Shimmer
import Nuke
import NukeUI
struct AccountDetailHeaderView: View {

View file

@ -1,6 +1,5 @@
import Foundation
import SwiftUI
import Nuke
import NukeUI
import Models
@ -21,7 +20,7 @@ extension Account {
ProgressView()
}
}
.processors([ImageProcessors.Resize(size: .init(width: 20, height: 20))])
.processors([.resize(size: .init(width: 20, height: 20))])
.frame(width: 20, height: 20)
} else {
Text(part)

View file

@ -1,7 +1,6 @@
import SwiftUI
import Shimmer
import NukeUI
import Nuke
public struct AvatarView: View {
public enum Size {
@ -54,8 +53,7 @@ public struct AvatarView: View {
placeholderView
}
}
.processors([ImageProcessors.Resize(size: size.size),
ImageProcessors.RoundedCorners(radius: size.cornerRadius)])
.processors([.resize(size: size.size), .roundedCorners(radius: size.cornerRadius)])
.frame(width: size.size.width, height: size.size.height)
}
}

View file

@ -1,7 +1,6 @@
import SwiftUI
import Models
import Shimmer
import Nuke
import NukeUI
public struct StatusCardView: View {

View file

@ -2,7 +2,6 @@ import SwiftUI
import Models
import Env
import Shimmer
import Nuke
import NukeUI
public struct StatusMediaPreviewView: View {