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 DesignSystem
import Env import Env
import Shimmer import Shimmer
import Nuke
import NukeUI import NukeUI
struct AccountDetailHeaderView: View { struct AccountDetailHeaderView: View {

View file

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

View file

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

View file

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

View file

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