Skip to main content

MaskView

Masks two views

Preview

button preview

Example Usage

<RNSwiftUI.MaskView
optionalSubviews={
<RNSwiftUI.Text font="largeTitle" fontWeight="black">
Hello World
</RNSwiftUI.Text>}
>
<RNSwiftUI.Image imageUrl="https://cdn.pixabay.com/photo/2016/04/22/13/03/path-1345721_1280.jpg" />
</RNSwiftUI.MaskView>

Props

nametyperequireddescription
childrenReact.ReactNodeThe RNSwiftUI view which should be masked
optionalSubviewsReact.ReactNodeThe RNSwiftUI view that should be used as a mask

extends SwiftUIViewProperties