Files
AFFiNE/packages
DarkSky 5fc9486baf feat(ios): add native selection handles, keyboard avoidance, PDFKit renderer, and haptics
Add the native UIKit and PDFKit bridges in `packages/frontend/hosts/ios/`:

- Add teardrop selection handles, UTF-16 anchor drag probing, keyboard occlusion hiding, and loupe layout in `src/selection.rs` and `Sources/SelectionOverlayView.swift`.
- Add CoreText `CTTypesetter`, `CTLine`, and `CTRun` glyph-slot selection rects, BiDi endpoint carets, preferred-offset hit testing, and loupe drawing in `Sources/TextRenderingBridge.swift`, `src/ffi_text.rs`, and `src/text_layout.rs`.
- Add `UITextInput`, `HostTextPreviewView`, light canvas `#FAFAFC` clear color, rotation sync, and `UIEditMenuInteraction` wiring in `Sources/MetalHostViewController.swift`.
- Add per-frame keyboard avoidance in `src/keyboard_insets.rs` and `Sources/KeyboardAvoidanceCoordinator.swift` aligned with `ui::WindowInsets::effective()`.
- Add system `PDFKit` page rasterization in `src/pdf.rs` and `Sources/PdfRendererBridge.swift` with `.cropBox` rotation sizing and explicit document handles.
- Add UIKit haptics in `src/haptics.rs` and `Sources/HapticsBridge.swift`, `tests/IosHostS3SmokeTest.swift`, and `AGENTS.md`.
2026-11-27 06:55:48 +09:00
..