Development with Ionic 5

Ionic 5 app development

Development of an application is not that easy until now. Well I know that you too are fed up with the never ending codes and common mistakes which create silly bugs in programs then you must have thought How cool it would be if you can make a mobile application with the web technologies you already know like HTML, JavaScript and AngularJS. Guess what? If you know Web Development then you already know how to build mobile apps. Building a mobile app is a piece of cake if you are good at those web technologies and this is no joke.

The Ionic 5 framework provides the best web and suitable tac ticks and native app components for building highly interactive and progressive web Applications with AngularJS. And you know what’s the best part? It’s a 100% free and open source project. It gives you one code base to run everywhere. Which basically translates into that You can build apps for iOS, Android and Windows with the same code base. Ionic 5 is built on top of AngularJS and Cordova. It’s available on npm and requires Node.js as Cordova requires Node.js.

 

Now some of you must be wondering that what the heck is Cordova?

Well basically as you know Ionic 5 is actually a front-end framework, it needs a native wrapper like Cordova in order to run as a native app. Just like what Apple did when they switched the intel chip set to their own M1 and used Rosta to cover for it. Cordova wraps low-level browser shells like iOS’s UIWebView or Android’s WebView , that’s where the hybrid app runs. It actually provides the facility to use HTML5, CSS3 and JavaScript to develop cross-platform mobile app development.

 

Cordova have 3 essential parts

Web App : Where your web page-like code resides. HTML5, CSS , JavaScript, images, or other files necessary to run it reside here.

WebView : WebView provides the entire user interface to your app. Cordova applications are ordinarily implemented as a browser-based WebView within the native Mobile Application development

Plugins : Plugins are the coolest part of Cordova. It makes your app work like native app. They provide an interface for Cordova and native components to communicate your javascript code to the native APIs. This enables you to invoke native code from JavaScript.

 

Key development changes in IONIC 5

In the latest Ionic version they have added iOS 13 design updates, a new API for creating custom animations, revamped Ionicons, updated Ionic colors, full support for Ivy, Angular’s new renderer, new starter designs, Ionic CLI 5 and the support for React & Angular. Isn’t it fascinating now?

After more than a year of work, the Ionic Framework team has released version 5.0.0

(Magnesium) on 11th Feb 2020. This new version focused significantly on material design guidelines which improved the UI includes iOS 13 & Android design, compatibility with multiple frameworks (not only with Angular but now it supports react framework), ionic 5 features include revamped Ionicons, updated Ionic colors, new API for creating your own custom animations, new starter designs, improvements to component customization, updated documentation and other improvements that we will analyze in this article.

 

Some of the top features introduced in Ionic 5

It’s iOS Design

The major change in ionic version 5 release is a massive design upgrade across our UI components; they have focused more on following the material design guidelines. Apple recently released its iOS 13 update, where they updated the design of many components and thus included some updates to our own, these include headers, segments, large and small titles, and the menu overlay type. Let’s check out the changes the ionic team has made to match native iOS!

 

Better at Segment

The ionic team has completely revamped the iOS Segment design drastically from its previous iOS version. With the ionic 5 design update, a single indicator is now used to slide between the buttons, checking the one it ends on. Now it uses a gesture that can be used to drag the indicator that applies for both Material Design and iOS and some changes were introduced to support the new design.

(image- 2nd)

ion-segment no longer triggers an ionSelect event. Developers should use an ionChange event to trigger an ion-segment.

–indicator-color now applies to the checked segment button (for both ios and md & –indicator-color-checked has been removed )

–background variable has been added to style the ion-segment component. 

The checked property has been removed in ionic 5 & now developers have to set the value property on the ion-segment to match the value of the desired checked segment button.

Header issue solved

The header is a root component of the page that holds the toolbar component. In ionic v4 iOS introduced the idea of a collapsible header and different sized titles. In Ionic version 5, some properties are added to the header & title components to shrink large titles, small titles, and collapsible buttons.

Made the Titles Large

Ionic v 4 provides a way to create the collapsible titles that exist on stock iOS apps. The large title in iOS collapses into a default sized title when the content scrolls exceeding a certain point & this setup requires configuring your IonTitle, IonHeader, and IonButtons elements.

Small Title

The small title refers to a header note often used in combination with Swipe to Close Modals. It generally used inside of a toolbar above another toolbar that contains a standard-sized title (Additionally, to get the small title styling, ion-title must have size=”Small”. )

Angular Ivy

One of the biggest improvements to the latest Angular v9.0 is that Ivy is enabled by default & for Ionic Angular developers, Ivy support is now fully enabled in Ionic 5. Ivy allows apps to only keep pieces of the renderer that they require, instead of the whole thing. This means that our final output will be noticeably smaller, which is better for load performance.

 

Well that’s all we could sum up to you the new ionic 5 hope you get a really nice picture in your mind while using it. .

 



Leave a Reply