             return Float(parentSize.height)
         case .custom(let size):
             return size
-        case .customPortraitLandscape(let sizePortrait, let sizeLandscape):
+        case .customOrientation(let sizePortrait, let sizeLandscape):
             switch UIDevice.current.orientation {
             case .portrait, .portraitUpsideDown:
                 return min(Float(UIScreen.main.bounds.height), sizePortrait)

            return Float(parentSize.width)
        case .custom(let size):
            return size
        case .customPortraitLandscape(let sizePortrait, let sizeLandscape):
            switch UIDevice.current.orientation {
            case .portrait, .portraitUpsideDown:
                return min(Float(UIScreen.main.bounds.width), sizePortrait)

            return floorf(Float(parentSize.width) - value * 2.0)
        }
    }

    /**
     Calculates the exact height value for the presented view controller.
     
