Update Nuke usage
This commit is contained in:
parent
71713759b7
commit
aaba7f3337
|
@ -3,7 +3,6 @@ import Models
|
|||
import DesignSystem
|
||||
import Env
|
||||
import Shimmer
|
||||
import Nuke
|
||||
import NukeUI
|
||||
|
||||
struct AccountDetailHeaderView: View {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import SwiftUI
|
||||
import Models
|
||||
import Shimmer
|
||||
import Nuke
|
||||
import NukeUI
|
||||
|
||||
public struct StatusCardView: View {
|
||||
|
|
|
@ -2,7 +2,6 @@ import SwiftUI
|
|||
import Models
|
||||
import Env
|
||||
import Shimmer
|
||||
import Nuke
|
||||
import NukeUI
|
||||
|
||||
public struct StatusMediaPreviewView: View {
|
||||
|
|
Loading…
Reference in New Issue