Closed luisrmz92 closed 4 years ago
The Author should consider put the following modifier in method private var image: some View: .renderingMode(.original) The whole method would then this: private var image: some View { Group { if loader.image != nil { Image(uiImage: loader.image!) .resizable().renderingMode(.original) } else { placeholder } } }
This solved the black image phenomenon when using AsyncImage() i.e. in a SwiftUI-Button-View
@NeoLeonGithub Thanks for solution
.renderingMode(.original)
helps me without .resizable()
The problems came when I started using AsyncImage into Button inside of List on iOS 13. iOS 14 works fine without it.
@NeoLeonGithub thanks for suggesting the solution! I am closing the issue since the problem has been addressed.
load images black
first load
second load