• Whizzystack Solutions

IONIC 5- UPDATES

Updated: Jul 14

The Ionic Framework team has launched model 5.0.0( Magnesium ) on 11th Feb 2020. This new version centered considerably on material layout recommendations which advanced the UI consists of iOS 13 & Android design, compatibility with multiple frameworks (not best with Angular however now it supports react framework), ionic 5 capabilities consist of remodeled Ionicons, up to date Ionic colorings, new API for growing your very own custom animations, new starter designs, improvements to issue customization, up to date documentation and other enhancements that we can analyze in this article.


How to Update Ionic 4 App to Latest Ionic 5 Version?

  • For an Angular app

npm install @ionic/angular@latest --save

  • For a React app

npm install @ionic/react@latest --save
npm install @ionic/react-router@latest --save
npm install ionicons@latest --save

Top capabilities added in Ionic 5:

  • iOS Design

The latest version of the Ionic framework has a large section of the updated UI component compatible with IOS 13.Apple recently released its iOS 13 update, in which they up to date the design of many components and accordingly included a few updates to our own, these consist of headers, segments, huge and small titles, and the menu overlay type.


  • Segment

The ionic crew has absolutely remodeled the iOS Segment layout extensively from its preceding iOS model. With the ionic five design replace, a single indicator is now used to slide between the buttons, checking the only it ends on. Now it makes use of a gesture that may be used to pull the indicator that applies for both Material Design and iOS and some adjustments had been added to support the brand new design.



  • Header

The header is a root issue of the page that holds the toolbar aspect. Some properties to get a collapsible header and buttons are now available to use.In ionic v4 iOS added the idea of a collapsible header and special sized titles. In Ionic version 5, a few residences are added to the header & name additives to get small titles, shrinking broad claims, and collapsible buttons.


  • Large Title

The way to do so is to add two headers, one standard-sized above the content and one large-sized inside the content. Other elements, like the search bar in the large header, can also collapse.Ionic v 4 provides a manner to create the collapsible titles that exist on inventory iOS apps. The huge title in iOS collapses right into a default sized title when the content scrolls exceeding a certain point & this setup calls for configuring your IonTitle, IonHeader, and IonButtons elements.


  • Small Title

The small refers as a header note often used in combination with Swipe to Close Modals. It normally used internal of a toolbar above some other toolbar that contains a standard-sized identify (Additionally, to get the small title styling, ion-name ought to have size="Small".


  • Swipe to Close Modal

You can now add a modal that remains inset with the page behind it propelled back. A gesture could be used to control swipe to close modal.The Swipe to Close Modals in iOS mode has the capacity to be offered in a card-style and swiped to close mode rather than displaying a modal that covers the whole screen. The card-fashion presentation and swipe to shut gesture want to permit I.e. swipeToClose and imparting element need to be surpassed upon modal creation. Ionic five has includes a gesture to drag the modal down to shut it.


  • Refresher


The ion-refresher produces pull-to-refresh capability on a content issue & it's pulling icon in iOS has been updated above a header with a huge name. The pull-to-refresh pattern shall we a user pull down on a listing of records the usage of contact to retrieve greater statistics & as you pull down on the content the spinner rotates till the content material is pulled down enough to in which all ticks are seen after which it will start to rotate. IOS refresher in ionic v5 has absolutely redesigned to Material Design refresher.

  • List Header

ListHeader a header element for a listing and the lists in iOS now grow to be greater massive and bold layout. Comparing ionic v4, the List Header turned into uppercase and small and didn’t have the option for a bottom border. The new lines assets on a List Header permits you to add a border while matching the contemporary design.

The Ionic framework official website suggests wrapping all text content of the list header inside an <ion-label>. It is required to support the changes in the List header.

  • Ionic Animations

Ionic Animations is an open-supply animations software that offers developers the equipment to construct surprisingly performant animations no matter the framework they're using. Ionic Animations is now officially a part of the ionic five.zero launch which makes use of the Web Animations API to build and run all your animations. Web browser time table to run all your animations which offloads essential duties and prioritize optimizations to your animations permitting your animation to run easily as viable which enables you achieve excessive FPS which preserving low CPU makes use of.

Ionic 5 ships with the trendy version open-supply icon library Ionicons five, which includes all-new icons for use in web, iOS, Android, and computing device apps.

  • Ionic Colors

Ionic has nine default colors that may be used to exchange the color of many additives & on the way to alternate the default colorations we have to exchange the coloration characteristic. Ionic 5 up to date with all new colors by using default also to exchange the colours of your Angular or React app builders want to update the subject/variables css manually. Now ionic 5 supports the dark.

  • Easier Customization

We all know that the additives are not very easy to customize due to following reasons

Lack of to be had CSS Variables or way to style internal factors.


Components are being scoped and their Ionic styles taking precedence over custom styles.

To make it simpler for builders, ionic team brought assist for extra CSS variables,


transformed some scoped components to Shadow DOM, and commenced adding aid for Shadow Parts.


The following additives were converted to Shadow DOM:


  • Back Button

  • Card

  • Segment

  • Split Pane


  • Shadow DOM

An critical element of web components is encapsulation and shadow DOM serves for encapsulation. It lets in a aspect to have its very very own “shadow” DOM tree, that it is markup structure, fashion, and conduct hidden and separate from different code on the web page that can’t be by accident accessed from the primary document and the code may be kept satisfactory and clean.


In addition to that, Shadow DOM permits the use of custom CSS variables inside the issue for less difficult theming. In previous versions, Sass variables have been used to customise and subject an app but that brought on longer construct times but to have more than one themes within the identical app it required developing multiple CSS documents with different Sass variables.


With the growing assist for Shadow Parts in browsers, users could be capable of goal particular elements inside of our components to override their styles directly.

  • Angular Ivy

One of the biggest improvements to the brand new Angular v9.0 is that Ivy is enabled with the aid of default & for Ionic Angular builders, Ivy support is now completely enabled in Ionic 5. Ivy permits apps to only maintain pieces of the renderer that they require, rather than the whole thing. This approach that our final output may be distinctly smaller, which is better for load performance.

The manner the CSS variables are used for targeting the activated, targeted and hover backgrounds have been updated at the following components:


  • Action Sheet

  • Back Button

  • Button

  • FAB Button

  • Item

  • Menu Button

  • Segment Button

  • Tab Button

Anchor : The ion-anchor thing has been renamed to ion-router-link Back Button : Converted ion-returned-button to use shadow DOM. Card : Converted ion-card to apply shadow DOM.

Header / Footer : The no-border attribute has been renamed to ion-no-border Menu : Removed the main characteristic, use content material-id (for vanilla JS / Vue) and contentId (for Angular / React) instead.

Use swipeGesture() in preference to swipeEnable() function

Colors : The default Ionic shades have been updated to the following: primary: #3880ff secondary: #3dc2ff tertiary: #5260ff success: #2dd36f warning: #ffc409 danger: #eb445a light: #f4f5f8 medium: #92949c dark: #222428

Ionic five features bring a few solid modifications which includes iOS 13 layout updates, a new API for creating custom animations, made over Ionicons, updated Ionic colours, complete assist for Ivy, Angular’s new renderer, new starter designs, Ionic CLI 5 and the assist for React frameworks at the side of the Angular.


Hopefully, Ionic v5 will take the Ionic app improvement to every other degree and will help to develop the cross-platform app that may run on the computer, as PWAs, web, and cell platforms.


We wish these modifications will enhance your build time and productivity on the ionic platform.


The good thing is you don’t need to worry lots about dealing with the updates as the process is simple.


Just ensure to have a examine breaking changes document so that you may want to make adjustments in your app.


We will be happy to answer your questions on designing, developing, and deploying comprehensive enterprise web, mobile apps and customized software solutions that best fit your organization needs.

As a reputed Software Solutions Developer we have expertise in providing dedicated remote and outsourced technical resources for software services at very nominal cost. Besides experts in full stacks We also build web solutions, mobile apps and work on system integration, performance enhancement, cloud migrations and big data analytics. Don’t hesitate to get in touch with us!

0 views
whizzystack logo

About Us

 

We build & support your own talented, trusted, full-time development team hosted out of Whizzystack’s headquarters in India. We also deliver world class product and software development services Read more

Whizzystack

Our Developers

Contact Us

 New Jersey     

+1(877)3685420

 sid.baker@whizzystack.com 

 

 India   

+91(95)60641297

 +91(120)4287309 

 info@whizzystack.com

Subscribe to Our Blog

Sign up to receive email notifications when Whizzystack drops more knowledge.

  • LinkedIn
  • Facebook
  • Twitter
  • Instagram
  • RSS