[ad_1]
In SwiftUI it seems there are two choices for modifying colours to a listing.
-
Set a listing’s row background coloration
Record { ForEach(components, id:.self) { aspect in }.listRowBackground(Colour.blue) } -
Set a listing’s coloration scheme to both ‘mild’ or ‘darkish’
Record { ForEach(components, id:.self) { aspect in } }.colorScheme(.mild) // .darkish
Setting different attributes like background, foreground coloration, and so forth… appears to have zero impact on the view coloration of curiosity.
For the time being I do have the Record embedded in a Navigation View as such:
NavigationView {
Record {
ForEach(components, id:.self) { aspect in
}
}.colorScheme(.mild) // .darkish
}
However once more, no coloration settings or view hierarchy setup appear to allow to potential to set the background view to clear/clear so the colour of the principle view may be the driving force. Relatively it seems from experimentation that we’re pressured to decide on both a white or black background. Is that this a swift or Xcode bug or are there any options accessible?
[ad_2]

