Sobes.tech
Junior — Middle

Is it true that Subview can respond to user input if the main View is set as inactive for interaction?

sobes.tech AI

Answer from AI

If the main UIView property isUserInteractionEnabled is set to false, then all its subviews will also be unable to receive user input events. This is because disabling interaction on the parent view blocks event processing for the entire hierarchy of child views.

That is, even if a subview's isUserInteractionEnabled is set to true, it will not respond to input if the parent view is not active for interaction.

Is it true that Subview can respond to user input if… - sobes.tech