https://github.com/below/tabbarsample
A Sample for some SwiftUI / UIKit Problems
https://github.com/below/tabbarsample
Last synced: about 1 year ago
JSON representation
A Sample for some SwiftUI / UIKit Problems
- Host: GitHub
- URL: https://github.com/below/tabbarsample
- Owner: below
- Created: 2024-02-18T23:25:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T08:39:58.000Z (almost 2 years ago)
- Last Synced: 2025-01-26T02:44:05.384Z (about 1 year ago)
- Language: Swift
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TabBarSample
This is a sample to find an issue I am having when incorporating SwiftUI views into UIKit Views. It's structure attempts to mimic the production app as good as possible, and to serve as a minimal sample.
## The Issue
### To Reproduce
* Build and run the app
* Click "Show Sheet"
* Click "Navigate Deep"
* From the pushed view controller, navigate back
### Expected Result
The first tab still has a highlight tint
### Actual Result
Tint everywhere is lost, everything is grey
### Note:
If I do not dismiss the sheet using `isPresented = false`, but dismiss it manually, things are fine.
## The Solution
Timeing is everything. I am not calling the push in `onDissapear`