Blog

Lets’ create an Array with three elements first. var myArray = [“Swift”, “Objective-C”, “PHP”] Now we can loop through all elements in Array for arrayElement in myArray { print(arrayElement) } Loop through an array of elements and print out element index as well as element value. for (index, element) in myArray.enumerated() { print(“Element index: \(index).…

Read More Loop Through Array Elements in Swift

This tutorial will teach you how to create a simple Spring Cloud API Gateway Global Pre-filter and Post-filter classes. Global filters are executed for every route defined in the API Gateway. The main difference between the pre-filter and post-filter classes is that the pre-filter code is executed before Spring Cloud API Gateway routes the request to a…

Read More Spring Cloud API Gateway Global Filter Example

In this Swift code example, you will learn how to make the music playback slider smoothly move as the music continues to play so that the user is visually aware of how much of the music file has been already played and how much is left to play. Create AVPlayer and AVPlayerItem Create UIButton programmatically…

Read More AVPlayer. Add Periodic TimeObserver to Update Music Playback Slider

One way to ensure that an HTTP request to a web service endpoint contains an Authorization JWT token is to configure a gateway route to require an Authorization header.  If the HTTP request does not contain an Authorization header, Spring Cloud API Gateway will not even route this request to a destination microservice. We can…

Read More The Header Predicate in Spring Cloud API Gateway

There are a few different ways of how to create an Array with default values in Swift. Below are a few Swift code examples of creating an Array. Each example creates an array with some initial values. Create an Array of Strings var appleProgrammingLanguages: [String] = [“Swift”, “Objective-C”] Thanks to Swift’s type inference, you don’t…

Read More Create an Array with Default Values in Swift

In this tutorial, we will create a small Flutter function that calls android’s Kotlin native code to read the value of the battery level. Flutter uses a flexible system that allows you to call platform-specific APIs whether available in Kotlin or Java code on Android. Flutter’s built-in platform-specific API support does not rely on code…

Read More Calling Android Native Code in Flutter

This tutorial will teach you how to configure your Spring Cloud API Gateway to automatically create routes based on services registered with discovery clients like Eureka, Consul, or Zookeeper. For a step-by-step series of video lessons, please check this page: Spring Boot Microservices and Spring Cloud. Enable Discovery Locator A quick way to enable Spring Cloud…

Read More Spring Cloud API Gateway Automatic Mapping of Routes