mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-22 23:26:37 +00:00
Update Nuke usage
This commit is contained in:
parent
71713759b7
commit
aaba7f3337
5 changed files with 2 additions and 8 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue