Force ios style

Hello.
Is there a way to make my app on android look “as if it was” running on an ios device? (ie use all the styles of ios instead of using the styles of android…)

1 Like

Just call the following method in your module.config: ionic.Platform.setPlatform('ios');

Here’s a codepen example of forcing android style for your reference

How to do this in Ionic 2? Can you give example

imports: [
IonicModule.forRoot(MyApp,{
mode: 'md'
})
],
5 Likes

Thanks @LoLStats for the quick reply.
:slight_smile:

1 Like

Your welcome :slight_smile:

@LoLStats Is there any way to do this at the component level? I’d like to use the iOS segment element instead of the Android version.

<ion-segment mode="ios">

5 Likes