adaptivePresentationStyle method was called many times

Hi, When I rotated iPhone from portrait to landscape , the adaptivePresentationStyle method was called 6 times , printed compact 2 times and regular .4 times

// presenting viewcontroller
let vc2 = VC2()
vc2.modalPresentationStyle = .custom
vc2.transitioningDelegate = self
present(vc2, animated: true, completion: nil)

// PresentationControllerDelegate

func adaptivePresentationStyle(for controller: UIPresentationController, traitCollection: UITraitCollection) -> UIModalPresentationStyle {
        
        if traitCollection.verticalSizeClass == UIUserInterfaceSizeClass.compact {

            print("compact")
            return .fullScreen
        }
        print("regular")
        return .none
}

Why it printed regular 4 times in landscape mode ?

Thanks!

adaptivePresentationStyle method was called many times
 
 
Q