Learn how to get around GraphQL limitations with case insensitive search and adding multitple search filters to the query

Photo by Christina @ wocintechchat.com on Unsplash

I am pretty new to GraphQL. While I love it, I figured it is still pretty young and there are limitations to it. In this article (exercise), we will hack our way into implementing Multiple Search Filters and Case Insensitive Search

There are two problems we are trying to solve:

Problem 1: Multiple Where Clauses in Filters Not Allowed

Currently, you cannot filter GraphQL results with more than two “where” clause. Wouldn’t it be awesome if you could execute and manipulate result with conditional filters as below:


Learn how to asynchronously load images from URL and cache them in SwiftUI

Image source: Author

In this project, we will be loading an Image from Remote URL and implement Caching to prevent our application to make network requests over and over again.

We know SwiftUI currently does not allow something like,

Let’s get started on how to attain the functionality above. I will divide the definitions into three different files to make the code more readable.

  1. ContentView — This is your view where you pass a remote URL to ImageView.
  2. ImageView — To Render the Image from URL
  3. ImageModel — Image Fetch and Caching Logic.

Let us look at all the three files closely,


Set up your environment to automatically create models from your server’s GraphQL schema

the logos of Apollo, SwiftUI, and GraphQL
the logos of Apollo, SwiftUI, and GraphQL
Image by author

Before we build a full-stack application from scratch, let’s get some terms out of the way:

GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.” — GraphQL website

Apollo Client is a complete state management library for JavaScript apps. Simply write a GraphQL query, and Apollo Client will take care of…


In just four minutes, this article will teach you how to add beautiful animations to your SwiftUI apps

Photo by Alexander Shatov on Unsplash

You ever wondered how some apps like Airbnb have awesome animations on the loading screen. It is easier than it seems to use Lottie animations in your SwiftUI app.

“SwiftUI is an innovative, exceptionally simple way to build user interfaces across all Apple platforms with the power of Swift. Build user interfaces for any Apple device using just one set of tools and APIs. — Wikipedia. The best part is, you can integrate your views with components from UIKit, AppKit and WatchKit…


Learn how to use shadows to create Neumorphic components and use them to build Apple Music Player Now Playing view.

Photo by HalGatewood.com on Unsplash

In this tutorial, we will learn how to build Neumorphic views and use those components to build a Neumorphic version of the Apple Music Player using SwiftUI and Xcode. Before we begin, let’s look at what is SwiftUI.

“SwiftUI is an innovative, exceptionally simple way to build user interfaces across all Apple platforms with the power of Swift. Build user interfaces for any Apple device using just one set of tools and APIs. — Wikipedia. The best part is, you…


Learn how to add shimmer effect to text views and card views to make it more intuitive and pretty

Photo by Tyler Lastovich on Unsplash

Before we start, let’s get some terms out of the way:

“SwiftUI is an innovative, exceptionally simple way to build user interfaces across all Apple platforms with the power of Swift. Build user interfaces for any Apple device using just one set of tools and APIs. — Wikipedia. The best part is, you can integrate your views with components from UIKit, AppKit and WatchKit framework. SwiftUI has made building user interface straightforward.” — Apple Developer Xcode SwiftUI

Redacted is a SwiftUI…

Vin Osler

International writer with diverse interests

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store