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",
"state" : {
"branch" : "master",
"revision" : "32a99b537d1c6f3529a08257c28a5feb70c0c5af"
"revision" : "e43f9b99b172ae6a7253047f8ba95c7a0b05b99f"
}
},
{
@ -23,8 +23,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/kean/Nuke",
"state" : {
"revision" : "1e7395a8931ad19659fd1e10137a862b9c1e2a38",
"version" : "11.5.0"
"revision" : "81f6a3dea0c8ce3b87389c241c48601be07af0b1",
"version" : "11.5.1"
}
},
{

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

View file

@ -1,7 +1,6 @@
import SwiftUI
import Shimmer
import NukeUI
import Nuke
public struct AvatarView: View {
public enum Size {
@ -56,8 +55,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
import DesignSystem