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

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

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`