mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-05 11:15:01 +03:00
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`.