AFFiNE/packages/frontend/apps/ios
CatsJuice 11b453f4d8
feat(mobile): swipe to open menu for explorer (#8953)
close AF-1803

- bump theme
- extract `SwipeHelper` and add `speed`, `direction` detection support
- new mobile `SwipeMenu` component
- integrate `SwipeMenu` to open a menu in Explorer
- New `Haptics` module for mobile, implemented in `ios` and `mobile`(`navigator.vibrate()`)

![CleanShot 2024-11-28 at 12.25.14.gif](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/LakojjjzZNf6ogjOVwKE/cba36660-f38a-473b-b85c-33540a406835.gif)
2024-12-02 03:27:01 +00:00
..
App feat(mobile): swipe to open menu for explorer (#8953) 2024-12-02 03:27:01 +00:00
src feat(mobile): swipe to open menu for explorer (#8953) 2024-12-02 03:27:01 +00:00
.gitignore feat(mobile): iOS app testflight (#8501) 2024-10-18 09:30:38 +00:00
capacitor.config.ts feat(ios): live reload script and docs (#8863) 2024-11-20 01:33:18 +00:00
package.json feat(mobile): swipe to open menu for explorer (#8953) 2024-12-02 03:27:01 +00:00
project.json feat(mobile): iOS app testflight (#8501) 2024-10-18 09:30:38 +00:00
README.md feat(ios): live reload script and docs (#8863) 2024-11-20 01:33:18 +00:00
tsconfig.json feat(mobile): iOS app testflight (#8501) 2024-10-18 09:30:38 +00:00

iOS

AFFiNE iOS app.

Build

  • yarn install
  • BUILD_TYPE=canary PUBLIC_PATH="/" yarn workspace @affine/ios build
  • yarn workspace @affine/ios cap sync
  • yarn workspace @affine/ios cap open ios

Live Reload

Capacitor doc: https://capacitorjs.com/docs/guides/live-reload#using-with-framework-clis

  • yarn install
  • yarn dev
    • select ios for the "Distribution" option
  • yarn workspace @affine/ios sync:dev
  • yarn workspace @affine/ios cap open ios