No one will help me

Why is it that I cant detect the presentation style so I can resize in the view did load ?

Accepted Reply

You could handle the various presentation styles in viewDidLoad of your main MessagesViewController. I have mine doing this;


switch self.presentationStyle {
           
        case .compact:
           
            // Do things with compact here
            print("This is in compact style")
           
        case.expanded:
           
            // Do things with expanded here
            print("This is in expanded style")
           
}

Replies

You could handle the various presentation styles in viewDidLoad of your main MessagesViewController. I have mine doing this;


switch self.presentationStyle {
           
        case .compact:
           
            // Do things with compact here
            print("This is in compact style")
           
        case.expanded:
           
            // Do things with expanded here
            print("This is in expanded style")
           
}