Bird
0
0

Why does setting the subtype property have no effect when the type is set to .fade in a CATransition?

hard📝 Conceptual Q10 of 15
iOS Swift - Animations
Why does setting the subtype property have no effect when the type is set to .fade in a CATransition?
ABecause subtype only works with moveIn type
BBecause subtype must be set before type
CBecause fade transition does not support directional subtypes
DBecause fade requires a custom animation instead
Step-by-Step Solution
Solution:
  1. Step 1: Understand fade transition behavior

    Fade transition simply fades content in or out without direction.
  2. Step 2: Recognize subtype role

    Subtype controls direction for transitions like push or moveIn, but fade ignores it.
  3. Final Answer:

    Because fade transition does not support directional subtypes -> Option C
  4. Quick Check:

    Fade ignores subtype because no direction needed [OK]
Quick Trick: Fade ignores subtype; no direction in fade [OK]
Common Mistakes:
  • Thinking subtype affects fade
  • Setting subtype order incorrectly
  • Confusing fade with directional types

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More iOS Swift Quizzes