Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonnickel/fb13080609-swiftuisplitviewnavigationstackappearcrash
https://github.com/simonnickel/fb13080609-swiftuisplitviewnavigationstackappearcrash
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/simonnickel/fb13080609-swiftuisplitviewnavigationstackappearcrash
- Owner: simonnickel
- Created: 2023-08-29T20:23:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-11T09:19:02.000Z (about 1 year ago)
- Last Synced: 2024-12-16T16:06:20.128Z (25 days ago)
- Language: Swift
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FB13080609
## NavigationSplitView with NavigationStack inside crashes when it appears with content on the NavigationPath
## Fixed in iOS 17.2
### Scenario
There is a ```NavigationSplitView``` with a ```NavigationStack``` in the detail column. The ```NavigationPath``` of the ```NavigationStack``` is stored in a ```@State``` variable. The whole view gets removed and displayed again with the same path applied. So the NavigationStack inside of the NavigationSplitView appears with items in its path.
### The issue
When the view re-appears (with items on the stack), the app hangs and crashes after some time. The log shows the following message:
```Abnormal number of gesture recognizer dependencies: 1.350. System performance may be affected. Please investigate reducing gesture recognizers and/or their dependencies.```
Counting up until it crashes, CPU stays at 100% and memory grows.### Example Project
The example shows a ```NavigationStack``` inside the detail column of a ```NavigationSplitView```. There is a toggle to hide/show the ```NavigationSplitView```.
When there is one or multiple views on the stack (not just the selection of the sidebar) and the NavigationSplitView re-appears after being hidden, the app gets inresponsive until it crashes. This does not happen with an empty stack. The log shows the following message:
```Abnormal number of gesture recognizer dependencies: 1.350. System performance may be affected. Please investigate reducing gesture recognizers and/or their dependencies.```
### How to reproduce
1. Run the app on iPad or iPhone.
2. Select an entry from the list.
3. Select another entry from the new list.
4. Disable the toggle to hide the view.
5. Enable the toggle to show the view again.## Fixed in iOS 17.2
Issue no longer exists in iOS 17.2 (21C5046b).
Tested with Xcode Version 15.1 beta 3 (15C5059c).### Issue exists on:
- Xcode 15.0 Beta 8 with iOS 17.0 (21A5326a)
- Xcode 15.0 Beta 7 with iOS 17.0 (21A5317a)
- Xcode 15.0 Beta 6 with iOS 17.0 (21A5303d)
- Xcode 15.0 Beta 5 with iOS 17.0 (21A5291g)
- Xcode 15.0 RC (15A240d) with iOS 17.0 (21A328)
### Works on:
- Xcode 15.0 Beta 4 with iOS 17.0 (21A5277g)