Effects
LEGEND APPSPreview
Content swap
Reveal and compare caller-supplied content while keeping its state mounted.
← All effects

Still captured in Legend Slides for macOS (development build).
Requires a Legend Slides build with effect installation support. Installs the presenting pack (1.0.0, 22 KB source) and its dependencies. macOS host capabilities: reanimated, skia. Installed decks work offline.
Use it in a deck
---
title: Content swap
---
import { View, Text } from "react-native";
import { ContentSwap } from "slides:presenting/Composition";
# Content swap
<View style={{ width: 1696, height: 650 }}>
<Steps count={3}>{step => <ContentSwap active={step > 0} before={<Text style={{color: "white",fontSize: 100}}>The evidence</Text>} after={<Text style={{color: "#67e8f9",fontSize: 100}}>The takeaway</Text>} style={{width: 1696,height: 580}} />}</Steps>
</View>
Configure
- content
- Supply the illustrations or React content.
- style
- Give the composition explicit stage bounds.
Only imported effects enter the compiled deck. Installation and versioning →