this bug demo report repo uses capacitor + ios for now , I will add android later if wanted but it's targeted at iOS users first
this repo shows a bug which happens when using element.insertBefore to prepend an element. In a browser prepending an element will only keep the container scrolled top if the container is already on top, else the container will keep its position. But in ionic the container is always scrolled to top when prepending elements
- run npm i (takes some time)
-
this will install all needed dependencies
-
this will build the app as a post install
-
this will init ionic capacitor for iOS
-
this will launch Xcode with livereload enabled
-
then you will need to select your simulator in Xcode (iphone 8 for example) & press run
you will be able to see it in browser here : http://localhost:8100
it will not work on a real device, for real device use npm run deploy:ios
- run npm dev:ios
- set up the project in Xcode
- set up bundle name "ionic.io.scroll" for example
- set up Signing & Capabilities
- launch app on emulator (not on device)
- App will be also at http://localhost:8100
- run npm deploy:ios
- set up the project in Xcode
- set up bundle name "ionic.io.scroll" for example
- set up Signing & Capabilities
- launch app on connected device
Todo