SwiftUI calling custom color into ListViewRow

I cant get either a custom of basic color to not timeout Xcode .listRowBackground( Capsule().fill(Color(white: 1, opacity(0.8))) .padding(.vertical, 2) .padding(.horizontal, 10) )

Answered by TechyGod in 777307022

correct code is

.listRowBackground( Capsule().fill(Color.white.opacity(0.8))) .padding(.vertical, 2) .padding(.horizontal, 10) )

Accepted Answer

correct code is

.listRowBackground( Capsule().fill(Color.white.opacity(0.8))) .padding(.vertical, 2) .padding(.horizontal, 10) )

SwiftUI calling custom color into ListViewRow
 
 
Q