SwiftUI – TabView

By | 19/06/2020

In this post, we will see how to create a TabView, used to show two different Pages. We start, creating two SwiftUI views called Page1 and Page2: [PAGE1.SWIFT] [Page2.swift] Then, we will add another SwiftUI view called TabMenu where, we will define the TabView: [TABMENU.SWIFT] We have done and, if we run the application, this… Read More »

React – prevState

By | 16/06/2020

In this post, we will see what prevState is and how to use it.From React docs: “React may batch multiple setState() calls into a single update for performance. Because this.props and this.state may be updated asynchronously, you should not rely on their values for calculating the next state.To fix it, use a second form of setState() that accepts a… Read More »

React – State

By | 12/06/2020

In this post, we will see how to use State in a Class Component.But, what is State?State is a special object of the Class Component, which allows components to create and manage their own data. It is where we store property values that belongs to the component and, when it changes, the component re-renders.It is… Read More »

CSS – How to inheritance a class

By | 09/06/2020

In this post, we will see how to inheritance a class in a css file. We start creating a web page, called Home.html, where we will put a div: [HOME.HTML] Now, if we want to add another div, with a different width and different font-size, we will write a HTML code like that: If we… Read More »

Category: CSS

Azure – How to create an Azure SQL Database

By | 05/06/2020

In this post, we will see how to create an Azure SQL Database using the Azure portal. We open a browser, go to https://portal.azure.com, select “Create a resource” and we choose “SQL Database”: The first things we have to set are:Resource GroupDatabase NameServer Then, we have to set some Networking parameters: Finally, we review everything… Read More »

Angular – How to Dockerize an Angular application

By | 02/06/2020

In this post, we will see how to Dockerize an Angular application and how to deploy it in Docker Hub. ANGULAR PROJECT:We start creating a new Angular project called “AngularDockerUI” with three components: ng new AngularDockerUIng g c share/menung g c share/homepageng g c pages/pagelist Finally, we install Bootstrap using the command npm install bootstrap… Read More »

SwiftUI – Picker

By | 27/05/2020

In this post, we will see how to add a Picker for selecting Sex in the form created in: How to create a Form First of all, we define an array with all the items to display in the picker and then we define a variable where we will save the Picker’s item chosen: Then,… Read More »

SwiftUI – How to create a Form

By | 13/05/2020

In this post, we will see how to create a Form in Swift. We start creating a file called PageForm.swift and then, we set it as starter page, changing the file SceneDelegate.swift: [PAGEFORM.SWIFT] If we run the application, this will be the result: