AccessoryWidgetBackground

一个 SwiftUI 自适应背景视图,根据小部件的环境提供标准外观。

iOS
Bundled version:
~55.0.2

Expo UI AccessoryWidgetBackground 与官方 SwiftUI AccessoryWidgetBackground API 匹配,并创建一个自适应的背景视图,该视图根据小组件的环境提供标准外观。

🌐 Expo UI AccessoryWidgetBackground matches the official SwiftUI AccessoryWidgetBackground API and creates an adaptive background view that provides a standard appearance based on the the widget's environment.

安装

🌐 Installation

Terminal
npx expo install @expo/ui

If you are installing this in an existing React Native app, make sure to install expo in your project.

用法

🌐 Usage

基本配件小部件背景

🌐 Basic accessory widget background

BasicAccessoryWidgetBackground.tsx
import { AccessoryWidgetBackground, VStack, Text, ZStack } from '@expo/ui/swift-ui'; export default function BasicAccessoryWidgetBackground() { return ( <ZStack> <AccessoryWidgetBackground /> <VStack> <Text>MON</Text> </VStack> </ZStack> ); }

应用接口

🌐 API

import { AccessoryWidgetBackground } from '@expo/ui/swift-ui';

No API data file found, sorry!