Open in app

Sign In

Write

Sign In

Mohd Hafiz
Mohd Hafiz

431 Followers

Home

About

Mar 8

How to Create a Custom Gradient Button in iOS with Swift

Learn how to implement a custom UIButton with a gradient background — In this tutorial, you will learn how to create a custom button with a gradient background using Swift. You also will be able to change the gradient colors in storyboard or xib. By the end of the tutorial, you should have a good understanding of how to design and implement…

IOS

4 min read

How to Create a Custom Gradient Button in iOS with Swift
How to Create a Custom Gradient Button in iOS with Swift
IOS

4 min read


Published in Better Programming

·Oct 21, 2022

Form Validation in UIKit Made Easy With Combine

Simplified with a reactive approach — The Combine framework provides a declarative Swift API for processing values over time. These values can represent many kinds of asynchronous events. — Apple Developer Documentation Combine was introduced in WWDC19 and iOS13. There are two important elements in Combine, publisher, and subscriber. …

Programming

5 min read

Form Validation in UIKit Made Easy With Combine
Form Validation in UIKit Made Easy With Combine
Programming

5 min read


Published in Better Programming

·Oct 11, 2022

How To Create a Button With Loading Indicator in iOS

Learn how to create a button with a built-in spinner — One of the most crucial UI components in mobile development is the button. In mobile app design, we will essentially require a loading indication to improve user experience by ensuring that the user is aware that the state has changed or request is being processed. Getting Started In this article, we are…

Programming

4 min read

How To Create a Button With Loading Indicator in iOS
How To Create a Button With Loading Indicator in iOS
Programming

4 min read


Published in Firebase Developers

·Oct 26, 2021

How to Use Codable in Firebase Realtime Database

Learn how to simplify your code for reading and writing data — Using Firebase Realtime Database is one of the quickest and reliable solutions to build our app with backend storage. It is a NoSQL cloud database that provides various features, including real-time sync and offline support. Firebase offers cross-platform SDKs, allowing us to easily integrate it into our iOS apps. In…

Firebase

7 min read

How to Use Codable in Firebase Realtime Database
How to Use Codable in Firebase Realtime Database
Firebase

7 min read


Published in Better Programming

·Oct 19, 2021

5 Different Ways to Pass Data in iOS Codebases

Dependency injection, delegate methods, and more — Data passing between view controllers and views is an important aspect of iOS development. In fact, an improper implementation may result in app failure and produce incorrect end results. Getting Started In this article, we will learn how to implement the five methods to pass data between view controllers. Using internal or…

Swift

5 min read

5 Different Ways to Pass Data in iOS Codebases
5 Different Ways to Pass Data in iOS Codebases
Swift

5 min read


Published in Better Programming

·Aug 5, 2021

5 SwiftUI List Tricks for iOS 14+

Navigation, grouped styling, bulk deletion, expandable lists, and sections — List is a great SwiftUI component to create a list view that contains multiple row views. It’s quite similar to UITableView, but it has a totally different implementation (no more delegate and data source methods). List in SwiftUI uses declarative code, which means that it will observe the data changes…

Programming

4 min read

5 SwiftUI List Tricks for iOS 13
5 SwiftUI List Tricks for iOS 13
Programming

4 min read


Published in Better Programming

·Jul 26, 2021

How To Present a View Controller With Blurred Background in iOS

Customize the intensity level of UIBlurEffect — What’s the issue? The problem begins when I was searching for a native iOS API to create a blurred background view while presenting a modal ViewController as shown in the image above. I found that iOS has provided UIBlurEffect with three different styles, including .light, .dark and .extraLight. However, I could not set…

Swift

5 min read

How To Present a View Controller With Blurred Background in iOS
How To Present a View Controller With Blurred Background in iOS
Swift

5 min read


Published in Better Programming

·Jul 14, 2021

The SwiftUI Equivalents to UICollectionView

Learn how to implement a Grid Layout in iOS13 and iOS14 — SwiftUI was first introduced at WWDC 2019, and the API has rapidly improved over the last two years. Apple has really made significant improvements to SwiftUI, including UI components, layouts, and animation. Until WWDC21, SwiftUI had not yet included a dedicated CollectionView or Compositional Layouts to replace the UICollectionView in…

Programming

4 min read

The SwiftUI Equivalents to UICollectionView
The SwiftUI Equivalents to UICollectionView
Programming

4 min read


Published in Better Programming

·Jun 30, 2021

Build an Infinite List With SwiftUI and Combine

A simple and neat iOS app using the Combine framework — SwiftUI has become more famous since its introduction at WWDC2019. Over the past two years, Apple has added lots of improvements to this UI framework. Today, developers have started adopting it and slowly migrating their projects from UIKit. What Will We Build? In this tutorial, we will make a simple list with endless scrolling…

Programming

5 min read

Build an Infinite List With SwiftUI and Combine
Build an Infinite List With SwiftUI and Combine
Programming

5 min read


Published in Level Up Coding

·Jun 29, 2021

How to Create Infinite Scroll in UITableView

Simple way to paginate your TableView based on API data — Overview The rise of social media platforms such as Facebook and Twitter have had a significant impact on the world today. People appear to have a habit of scrolling through their feeds all day, looking at various information and stories. A feed page is a common feature in every social app…

Swift

5 min read

How To Create Infinite Scroll in UITableView
How To Create Infinite Scroll in UITableView
Swift

5 min read

Mohd Hafiz

Mohd Hafiz

431 Followers

iOS Developer focusing on Swift — “Read, learn & do it!”.

Following
  • Fernando Doglio

    Fernando Doglio

  • Hafiq Iqmal

    Hafiq Iqmal

  • Artturi Jalli

    Artturi Jalli

  • Duy Bui

    Duy Bui

  • John Gruber

    John Gruber

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech