Find out how some carriers make you do some extra work to enable Personal Hotspot in iPhone

Photo by Howard Bouchevereau on Unsplash

After about one and a half years of being an iOS Developer, in November 2020, I could finally muster courage to invest my savings on an iPhone. Hence, after months of in-depth research and feasibility study (credit goes to my involvement in technical field for that habit of using jargons 😂), I got myself an iPhone SE 2020. And till now, I have nothing to complain about it except for its battery life — it could have been better!

One day, I was travelling with my friends and I decided to use the Personal Hotspot feature of my iPhone to…


Learn the import process the easy way

A picture containing Swift logo with the illustration of a package
A picture containing Swift logo with the illustration of a package
Source: developer.apple.com

Playground is one of the most popular features of Xcode. It’s an interactive development environment that allows developers to carry out simple experiments using the Swift programming language and see the output of their code in real-time.

In your programming journey, there may be times when you’d like to try a new package. In my case, I stumbled upon “Announcing Swift Algorithms” on the official Swift website. As I looked through it, I came to know about the new features that Swift Algorithms package offers. This made me quite excited to get my hands dirty! …


Getting started with WidgetKit

Source: WWDC20

If you’ve been following WWDC20, then you totally understand how huge this edition of WWDC has been for the whole Apple ecosystem, users, and developers. With the announcement of iOS 14, many handy features are on their way to spice up the iOS experience. One of such features is Widgets.

I know this doesn’t sound new for Android users, but this definitely is great news for iOS users. Now, developers can create widgets of their applications by making use of the new WidgetKit framework. As of now, it is in Beta and available in Xcode 12 Beta and above.

Note…


An awesome feature that most programming languages do not offer

“An else block can exist only when an if block exists before it.”

As a programmer not belonging to Python background, I was a strict follower of this rule. But I was left awestruck and confused after I saw one of my friends’ Python code that used an else block after a for loop. So, I performed some research and found that Python provides a feature, that allows us to use an else block with for and while loops. The else block after a for or while loop is executed only when that loop is not terminated by a break


An awesome new feature in Swift 5.2

Photo by Meritt Thomas on Unsplash

Consider this piece of code:

Here, we’ve created a struct named Car with five properties: model, brand, releaseDate, price, designerName and isExpensive.

Let’s create some instances of this struct and store them in an array, cars:

Note: The names of the cars and their properties do not resemble the cars in real world.

If we want to retrieve the models of all the cars in the cars array, up to Swift 5.1, the syntax would be as follows:

let carModels = cars.map({ car in
return car.model
})

Or, if that developer is a bit lazy (like me!) or…


As of Xcode 11.4 beta, you can!

Photo by Jamie Street on Unsplash

Push notifications are one of the most popular ways for developers to keep users engaged in their apps. In iOS applications, push notifications can be incorporated by using the Apple Push Notification service (APNs).

However, it’s not as easy as it sounds since there is a long list of things to do for setting this up. Plus, what’s worse is that we have to use a real device to test if push notifications are working or not since push notifications aren’t supported in Xcode’s iOS Simulator.

But I have some good news for you. Xcode 11.4 beta is out and…


On November 7, 2019, an announcement was posted by Shreyata Karmacharya, the Engineering Manager of Insight Workshop, in the official Skype group chat of the company. It was about an internal hackathon, “IW Hack Fest 2019”, that was scheduled for November 23, Saturday. With that announcement, a wave of idea hunt started in each of our minds. However, a group of 3–5 had to be formed before registering, so I went on a lookout for my hackathon mates. Initially, I had thought that it wouldn’t be that difficult to form a group of like-minded individuals for a common goal. But…


Putting it all together and adding the functionality to your app

This is the third and the last part of the series “Implementing Sign in with Apple Using Django: A Recipe,” which has been written to share a clear path for developers to implement the Sign in with Apple feature in their iOS apps with Django in the back end.

Please refer to this link to read the first part of the series and to this link to read the second part.

3. Implementing Sign in with Apple in Your iOS App

Now, the only step remaining to be done is in the iOS app itself. In Part 1 of this series, we added Sign in with Apple to our app’s…


Building your custom back end

This is the second part of the series “Implementing Sign in with Apple Using Django: A Recipe,” which has been written for showing a clear path for developers to implement the Sign in with Apple feature in their iOS apps with Django in the back end.

Please refer to this link to read the first part of the series.

2. Making the Back End Ready by Implementing Sign in with Apple

For implementing Sign in with Apple on a Django-powered back end, we’ll need a server running a project of Django 2.0 or above, with Python Social Auth. …


Certificates and keys

At WWDC 2019, Apple announced Sign in with Apple, its alternative to third-party logins — a mechanism long provided by Facebook, Twitter, Google, and others. Back then, I was developing an application that had the features of logging in with Facebook and Google. And since I found the documentation of implementing Sign in with Apple quite confusing, I kept myself from implementing it in the application I was developing.

Some weeks ago, the application I was developing was finally ready to be uploaded to the App Store. I tested everything and sent it for review to Apple. …

Sagun Raj Lage

Author of Getting Started with WidgetKit (2021) | iOS Developer | Full Stack Web Developer

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