From aaba7f33370f07b4ae843ff46061a765e7d5ef6b Mon Sep 17 00:00:00 2001 From: kean Date: Mon, 26 Dec 2022 14:16:21 -0500 Subject: [PATCH] Update Nuke usage --- .../Account/Sources/Account/AccountDetailHeaderView.swift | 1 - Packages/DesignSystem/Sources/DesignSystem/AccountExt.swift | 3 +-- .../DesignSystem/Sources/DesignSystem/Views/AvatarView.swift | 4 +--- Packages/Status/Sources/Status/Row/StatusCardView.swift | 1 - .../Status/Sources/Status/Row/StatusMediaPreviewView.swift | 1 - 5 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Packages/Account/Sources/Account/AccountDetailHeaderView.swift b/Packages/Account/Sources/Account/AccountDetailHeaderView.swift index 8355bdbe..78c4b33b 100644 --- a/Packages/Account/Sources/Account/AccountDetailHeaderView.swift +++ b/Packages/Account/Sources/Account/AccountDetailHeaderView.swift @@ -3,7 +3,6 @@ import Models import DesignSystem import Env import Shimmer -import Nuke import NukeUI struct AccountDetailHeaderView: View { diff --git a/Packages/DesignSystem/Sources/DesignSystem/AccountExt.swift b/Packages/DesignSystem/Sources/DesignSystem/AccountExt.swift index eed9d5a0..cb0851fa 100644 --- a/Packages/DesignSystem/Sources/DesignSystem/AccountExt.swift +++ b/Packages/DesignSystem/Sources/DesignSystem/AccountExt.swift @@ -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) diff --git a/Packages/DesignSystem/Sources/DesignSystem/Views/AvatarView.swift b/Packages/DesignSystem/Sources/DesignSystem/Views/AvatarView.swift index 442691b1..ca033fa9 100644 --- a/Packages/DesignSystem/Sources/DesignSystem/Views/AvatarView.swift +++ b/Packages/DesignSystem/Sources/DesignSystem/Views/AvatarView.swift @@ -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) } } diff --git a/Packages/Status/Sources/Status/Row/StatusCardView.swift b/Packages/Status/Sources/Status/Row/StatusCardView.swift index ac7694c1..4a54ee2f 100644 --- a/Packages/Status/Sources/Status/Row/StatusCardView.swift +++ b/Packages/Status/Sources/Status/Row/StatusCardView.swift @@ -1,7 +1,6 @@ import SwiftUI import Models import Shimmer -import Nuke import NukeUI public struct StatusCardView: View { diff --git a/Packages/Status/Sources/Status/Row/StatusMediaPreviewView.swift b/Packages/Status/Sources/Status/Row/StatusMediaPreviewView.swift index 65c69975..c88d8d19 100644 --- a/Packages/Status/Sources/Status/Row/StatusMediaPreviewView.swift +++ b/Packages/Status/Sources/Status/Row/StatusMediaPreviewView.swift @@ -2,7 +2,6 @@ import SwiftUI import Models import Env import Shimmer -import Nuke import NukeUI public struct StatusMediaPreviewView: View {