HeroSnapshotType

public enum HeroSnapshotType

Undocumented

  • Will optimize for different type of views For custom views or views with masking, .optimizedDefault might create snapshots that appear differently than the actual view. In that case, use .normal or .slowRender to disable the optimization

    Declaration

    Swift

    case optimized
  • snapshotView(afterScreenUpdates:)

    Declaration

    Swift

    case normal
  • layer.render(in: currentContext)

    Declaration

    Swift

    case layerRender
  • will not create snapshot. animate the view directly. This will mess up the view hierarchy, therefore, view controllers have to rebuild its view structure after the transition finishes

    Declaration

    Swift

    case noSnapshot