How to Implement PromiseKit in Swift Apps
Promises are one of the best ways to handle asynchronous code. The best example of asynchronous code is API making a call to some endpoint and getting the data. Now, these calls are the basis of the modern internet. This is how Amazon’s website receives all product data from the back end. The data is always stored in a server, so it takes one to two seconds to show the data. That’s a lot of time in programming, and our code doesn’t wait before executing further. Once it receives the data, it’s displayed. In this post from Nabendu Biswas on Waldo’s blog, you can learn about PromiseKit, through which we can implement promises in Swift.
IQKeyboardManager: A Detailed How-To Guide
One of the biggest problems with iPhone apps is the on-screen keyboard. When we have a text field or something like it, it overlaps it if it doesn’t have any space. Now, it’s very difficult to write in that text field without seeing what we’re writing. There are many solutions to solve this issue, but IQKeyboardManager comes as the best solution. In this post from Nabendu Biswas on Waldo’s blog, you canl first learn about IQKeyboardManager.
Using Swifter HTTP Engine: A Detailed Guide
An HTTP (Hypertext Transfer Protocol) engine is a web server that serves API endpoints. One of the most popular web servers is the Apache web server. But the web server is a broader term and includes HTTP and SMTP servers. At the most basic, the HTTP engine contains HTML pages stored in it, and we request them through our web browsers like Chrome. And then these HTML documents are sent to the browser, where they’re displayed. In this post from Nabendu Biswas on Waldo’s blog, you can learn about Swifter HTTP engine.
Testing With Appium: How to Use XPath Locators
Appium is a tool for testing native, mobile web, and hybrid applications. It lets you locate elements on a page using XPath, a language for navigating elements and attributes in an XML document like an HTML page. With Appium, you can use XPath to find elements on the screen based on attributes like text, ID, or class. In this post from Ifeanyi Benedict Iheagwara on Waldo’s blog, you can see how to use Appium and XPath to locate and interact with elements on a page.
Getting Started With SwiftyJSON
JavaScript Object Notation (JSON) is the most common way for data transfer on the internet. Whether you’re using a web app or a mobile app, the data from the back end will always come as JSON. Most of the time, the back-end engineers use a framework like NodeJS (JavaScript), SpringBoot (Java), or .NET(C#) to create an API endpoint. The API endpoints interact with the database. Now, from the web app front end, we use a library like Axios to make the API call. Meanwhile, from an iOS app, we use the library of Alamofire to do the API call. Alamofire doesn’t have any problem, but Swift is a strongly typed language that requires a lot of complex code for JSON. So, the data we get from Alamofire needs a lot of modification before being usable. We’ve faced the same issue in our guide to Alamofire. In this post from Nabendu Biswas on Waldo’s blog, you can learn about a solution to the JSON issue using SwiftyJSON.
Tailwind Grid CSS Classes: A How-to Guide
CSS grid layout is a great way to keep your web content organized using a system of rows and columns. In this post from Oscar Jite-Orimiono on CoderPad’s blog, you’ll learn how to use Tailwind Grid CSS classes to build web components. We’ll also cover how you can easily resize the rows and columns, and how to make the grid responsive.
Tailwind CSS Icons: A How-to Guide
Tailwind CSS is a low-level, utility-first CSS framework. It lets you build web components without leaving the comfort of the HTML markup. This is possible because, in place of predefined components, it has utility classes that make building custom components a lot easier. Tailwind CSS has a lot of utilities but none for adding icons to your project. You’ll have to use an external icon library or image. Icons are important in modern web development. In this post from Oscar Jite-Orimiono on CoderPad’s blog, you’ll learn how to use icons in Tailwind CSS.