Standalone player animations
You can configure the animations used to display and hide the player in standalone one. To do that, you need to update the playerStandaloneAnimationOrigin
parameter in JoinStoriesStandaloneConfig.
import JoinStoriesSDK
let standaloneConfig = JoinStoriesStandaloneConfig(...,
playerStandaloneAnimationOrigin: .bottom)
JoinStories.setConfiguration(YOUR_CONFIGURATION, viewConfig: storyConfig)
You have multiple cases:
Name | Animation |
---|---|
default | Default animation. Player will be displayed from the screen's bottom center. A scale animation is combined |
top | Player will slide from the top of the screen. No scale animation combined |
topLeft | Player will be displayed from the screen's top left corner. A scale animation is combined |
topRight | Player will be displayed from the screen's top right corner. A scale animation is combined |
bottom | Player will slide from the bottom of the screen. No scale animation combined |
bottomLeft | Player will be displayed from the screen's bottom left corner. A scale animation is combined |
bottomRight | Player will be displayed from the screen's bottom right corner. A scale animation is combined |