Back to Hero

HeroSnapshotType

docs/Enums/HeroSnapshotType.html

1.6.41.5 KB
Original Source

HeroSnapshotType

public enum HeroSnapshotType

Undocumented

Show on GitHub

`

                optimized
                `

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

Show on GitHub

`

                normal
                `

snapshotView(afterScreenUpdates:)

Declaration

Swift

case normal

Show on GitHub

`

                layerRender
                `

layer.render(in: currentContext)

Declaration

Swift

case layerRender

Show on GitHub

`

                noSnapshot
                `

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

Show on GitHub