Blog

Page 131 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Swift extract regex matches
regexstring

Swift extract regex matches

Published on September 2, 2023

# Extracting Regex Matches in Swift: A Simple and Efficient Solution! ✨ Are you struggling to extract substrings from a string that match a regex pattern in Swift? πŸ€” Don't worry, we're here to save the day! In this guide, we'll show you an easy-to-unders

Cover Image for How to Apply Gradient to background view of iOS Swift App

How to Apply Gradient to background view of iOS Swift App

Published on September 2, 2023

πŸ“πŸ“±πŸŒˆHow to Apply Gradient to Background View of iOS Swift AppπŸŒˆπŸ“±πŸ“ Are you trying to add a gradient as the background color of a view in your iOS Swift app, but nothing seems to change? Don't worry, you're not alone! Many developers face this issue, es

Cover Image for Changing the Status Bar Color for specific ViewControllers using Swift in iOS8

Changing the Status Bar Color for specific ViewControllers using Swift in iOS8

Published on September 2, 2023

# Changing the Status Bar Color for specific ViewControllers using Swift in iOS8 πŸ“±βœ¨ Want to change the status bar color for specific ViewControllers in your iOS app? πŸ–ŒοΈ In this post, we will address a common issue and provide an easy solution to help yo

Cover Image for How do you create a Swift Date object?

How do you create a Swift Date object?

Published on September 2, 2023

# πŸ“… Creating a Swift Date Object: A Handy Guide for Swift Developers If you're a Swift developer trying to create a Date object from a date string in Xcode, you may have found yourself scratching your head. Well, worry no more! In this blog post, we'll d

Cover Image for How do I make an enum Decodable in Swift?
enums

How do I make an enum Decodable in Swift?

Published on September 2, 2023

# How to Make an Enum Decodable in Swift πŸš€ Are you struggling to make your enums conform to Decodable in Swift? Don't worry, you're not alone! It can be a little tricky at first, but fear not, I've got you covered with some easy solutions. Let's dive in!

Cover Image for Simplest way to throw an error/exception with a custom message in Swift?

Simplest way to throw an error/exception with a custom message in Swift?

Published on September 2, 2023

# Simplest way to throw an error/exception with a custom message in Swift? πŸ˜• Are you a Swift developer struggling to find a way to throw a runtime exception with a custom message in your code? You're not alone! Many developers coming from other programmi

Cover Image for Move textfield when keyboard appears swift

Move textfield when keyboard appears swift

Published on September 2, 2023

# Move UITextField when Keyboard Appears in Swift! πŸ˜ƒπŸ“± Are you facing issues with moving the `UITextField` when the keyboard appears in your iOS app using Swift? Don't worry, we've got you covered! In this guide, we'll address common problems, provide ea

Cover Image for HTTP Request in Swift with POST method
httprequestparameters

HTTP Request in Swift with POST method

Published on September 2, 2023

# πŸ“ The Easiest Way to Send HTTP Request in Swift with POST Method Are you struggling to send an HTTP request with the POST method in Swift? Do you want to send parameters to a URL without bothering about reading the response? We got you covered! In this

Cover Image for Get User"s Current Location / Coordinates

Get User"s Current Location / Coordinates

Published on September 2, 2023

πŸŒŽπŸ“πŸ’‘ Blog Post: Getting User's Current Location: A Beginner's Guide to Coordinates and Maps Introduction: Welcome to another exciting blog post where we tackle the common problem of getting the user's current location and displaying it on a map. πŸ—ΊοΈπŸ“ˆ W

Cover Image for Xcode 8 / Swift 3: "Expression of type UIViewController? is unused" warning

Xcode 8 / Swift 3: "Expression of type UIViewController? is unused" warning

Published on September 2, 2023

# Fixing the "Expression of type UIViewController? is unused" warning in Xcode 8 / Swift 3. 😱🚫 So you've upgraded to Xcode 8 and suddenly you start seeing this warning: "Expression of type `UIViewController?` is unused." 😳 But everything seems to be wo