Hi,
I’m new to Ionic and have a problem that I can’t figure out. I am using ion-tool bar bottom on my application. In the browser it works as it should, but on Xcode’s emulator it is not visible on iPhones newer than 8.
code:
<template>
<ion-page>
<ion-content>
...
</ion-content>
<!-- Tabs bottom page -->
<ion-toolbar>
<ion-tabs>
<!-- had to add this for the toolbar to work in the browser -->
<ion-router-outlet></ion-router-outlet>
<ion-tab-bar slot="bottom">
<ion-tab-button tab="home" href="/home">
<ion-icon :icon="homeOutline"></ion-icon>
<ion-label>Hjem</ion-label>
</ion-tab-button>
<ion-tab-button tab="comment"
@click="loggedIn ? isCommentModalOpen = true : toastMessage('You need to log-in to access this', alertOutline, 'danger')">
<ion-icon :icon="chatboxOutline"></ion-icon>
<ion-label>Kommenter</ion-label>
</ion-tab-button>
<ion-tab-button tab="weather" @click="isWeatherModalOpen = true">
<ion-icon :icon="partlySunnyOutline"></ion-icon>
<ion-label>Værvarsel</ion-label>
</ion-tab-button>
<ion-tab-button tab="location" @click="createMap">
<ion-icon :icon="locationOutline"></ion-icon>
<ion-label>Kart</ion-label>
</ion-tab-button>
</ion-tab-bar>
</ion-tabs>
</ion-toolbar>
</ion-page>
</template>
I’ve tried wrapping everything inside ion-footer and adding ion-toolbar inside content, but that doesn’t help.
Anyone know what the problem is?
Setup:
“@capacitor/app”: “4.0.1”,
“@capacitor/core”: “4.1.0”,
“@capacitor/ios”: “4.1.0”,
"vue": "^3.2.21",
"@ionic/vue": "^6.0.0",
v16.17.0 - Node