@capgo/capgo-skills
Version:
55 agent skills for Capacitor mobile development
28 lines (18 loc) • 533 B
Markdown
Change WebView text size for visual accessibility.
**Platforms:** Android, iOS
```bash
npm install @capacitor/text-zoom
npx cap sync
```
```typescript
import { TextZoom } from '@capacitor/text-zoom';
const { value: currentZoom } = await TextZoom.get();
const { value: preferred } = await TextZoom.getPreferred();
await TextZoom.set({ value: 1.5 });
```
- Values are decimals (1.0 = 100%, 1.5 = 150%).
- iPad: Requires `preferredContentMode` set to `mobile` in Capacitor config.