Skip to main content
Version: 1.8.x

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:

NameAnimation
defaultDefault animation. Player will be displayed from the screen's bottom center. A scale animation is combined
topPlayer will slide from the top of the screen. No scale animation combined
topLeftPlayer will be displayed from the screen's top left corner. A scale animation is combined
topRightPlayer will be displayed from the screen's top right corner. A scale animation is combined
bottomPlayer will slide from the bottom of the screen. No scale animation combined
bottomLeftPlayer will be displayed from the screen's bottom left corner. A scale animation is combined
bottomRightPlayer will be displayed from the screen's bottom right corner. A scale animation is combined