@hite
I am wrong。
background(ContainerRelativeShape().fill(Color.init(.sRGB, red: 0.89, green: 0.89, blue: 0.89, opacity: 0.75)))
doesn`t work
Post
Replies
Boosts
Views
Activity
var body: some View {
VStack{
if self.family == .systemLarge {
LargeEntryView()
} else if self.family == .systemMedium {
MediumView()
} else {
SmallView()
}
}.background(ContainerRelativeShape().fill(Color.init(.sRGB, red: 0.89, green: 0.89, blue: 0.89, opacity: 0.75)))
}
works like charms.
Check this link, dude. https://forums.macrumors.com/threads/uilaunchimages-has-been-deprecated-warning-message.2201424/