Merge pull request #2 from kean/update-nuke

Update Nuke
This commit is contained in:
Thomas Ricouard 2022-12-27 14:24:55 +01:00 committed by GitHub
commit 39d45fd480
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 5 additions and 11 deletions

View File

@ -15,7 +15,7 @@
"location" : "https://github.com/evgenyneu/keychain-swift", "location" : "https://github.com/evgenyneu/keychain-swift",
"state" : { "state" : {
"branch" : "master", "branch" : "master",
"revision" : "32a99b537d1c6f3529a08257c28a5feb70c0c5af" "revision" : "e43f9b99b172ae6a7253047f8ba95c7a0b05b99f"
} }
}, },
{ {
@ -23,8 +23,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/kean/Nuke", "location" : "https://github.com/kean/Nuke",
"state" : { "state" : {
"revision" : "1e7395a8931ad19659fd1e10137a862b9c1e2a38", "revision" : "81f6a3dea0c8ce3b87389c241c48601be07af0b1",
"version" : "11.5.0" "version" : "11.5.1"
} }
}, },
{ {

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
@ -29,7 +28,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.value) Text(part.value)

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 {
@ -56,8 +55,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
import DesignSystem import DesignSystem