Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

如何以longFormHeight进行初始化? #222

Description

@nattychao

当我设置了shortFormHeight和longFormHeight,我想初始化的时候以longFormHeight的高度弹起,目前只能先设置shortFormHeight和longFormHeight一样,然后在viewDidAppear里调用panModalSetNeedsLayoutUpdate()去更新shortFormHeight,有点麻烦,需要控制器里保存一个flag用于判断,直接初始化就设定就好了:目前这样
var initFormHeight: PanModalPresentationController.PresentationState {
return PanModalPresentationController.PresentationState.longForm
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions