SwiftUIBackports: Infinite loop in UIView parentController property on iOS 14.0-14.4

General Information

See attached project

  • Project version: 1.6.3

  • Platform/OS version: iOS 14.0-14.4

  • IDE version: Xcode 13

  • Devices:

  • Any related GitHub issues:

Describe the bug

Uninited tab body causes infinite loop in UIView parentController property

Steps to reproduce

  1. Run attached project on iOS 14.0-14.4
  2. Tap “Show modal” on tab A
  3. Select TextField

Expected behavior

No infinite loop in OwningController.swift

Stack trace, compiler error, code snippets

Archive.zip

Additional context

If tab B were opened before Modal, all works fine.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

Amazing! Glad to hear. I’ll get this in shortly 😃

Oh! Get well soon!

Just ran into this as well with a TabView. Thank you for looking into it.

This issue could occur in other scenarios, but this is simplest way to reproduce

Thank you for raising, will investigate 👍🏻