In-House Articles



Recommended Articles



Jobs



Cracking the iOS Interview

When will the applicationWillResignActive() function be called?

When the application is about to become inactive, this function is called. In other words, it is called when the running application goes into an inactive state from an active state. An example would be when a user receives a phone call.

Swift Anytime Weekly

What is an iBeacon and how does it work?

Apple introduced the iBeacon, a Bluetooth Low Energy (BLE) hardware device. It serves as a transmitter for detecting iPhone/iPad/Apple Watches and sending promotional information within range. Data is sent to nearby devices when any device comes within range of the device, which is usually located at one fixed location.

Swift Anytime Weekly

iOS Good Practices

If you’re looking for icons, start with SF Symbols

The symbols can be incorporated into our projects through a library provided by Apple. It has 4000+ symbols in different weights and scales. All the symbols are designed with San Francisco, the system font for Apple platforms. You don’t need to import icons from SF Symbols into your project. Just use this below code to use any icon by giving the symbol name:

In Swift:
let image = UIImage(systemName: "square.and.pencil")

In SwiftUI:
Image(systemName: "square.and.pencil")

You can learn more about SF Symbols implementation by reading this article.

Swift Anytime Weekly

Code Quiz

What is wrong with the above code?

There is an enum called SubscriptionType as follows:
There is function with has a switch statement to check the subscription value. Check the line of interest. We are defining a value price for the switch case but we are not using it. What are the possible ways to get rid of that variable since it is redundant?

Solve the quiz and submit your answer along with your Twitter handle at team@swiftanytime.com

Swift Anytime Weekly

Thanks for Reading

We at Swift Anytime try to bring the best iOS ecosystem information for you that’s not only valuable but also most relevant based on your experience & preference.

Swift Anytime Weekly