Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noppefoxwolf/swiftuiworkaround
https://github.com/noppefoxwolf/swiftuiworkaround
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/noppefoxwolf/swiftuiworkaround
- Owner: noppefoxwolf
- License: mit
- Created: 2022-08-15T13:51:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-17T16:54:56.000Z (about 2 years ago)
- Last Synced: 2024-05-02T05:46:15.788Z (6 months ago)
- Language: Swift
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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