Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/noppefoxwolf/swiftuiworkaround


https://github.com/noppefoxwolf/swiftuiworkaround

Last synced: 29 days ago
JSON representation

Awesome Lists containing this project

README

        

# SwiftUIWorkaround

# Install

# Usage

## preferredColorScheme(_:)

`preferredColorScheme(nil)` is not working on sheet after changed.

`workaround.preferredColorScheme(_:)` changes all hierarcy appearance and working good with nil.

```swift
struct ColorSchemeView: View {
@State var colorScheme: ColorScheme? = nil

var body: some View {
contentView
.workaround.preferredColorScheme($colorScheme)
}
}
```

# Author

[noppe](https://twitter.com/noppefoxwolf)

# LICENSE

MIT