In-House Articles
Are Arrays thread-safe in Swift?
An array is an ordered, random-access generic collection. The Array
type holds elements of a single type, the array’s Element
type. An array can store any kind of element - from integers to strings to classes. But are they thread-safe?
Colors and Gradient in SwiftUI
Colors are powerful. They can convey a message through visuals and can give a certain kind of vibe to the art (for us, the app). It is one of those inevitable things that you are going to encounter while making pixel perfect production app. Learn more about colors and gradient in this week's Swift Anytime article.
What's new in Apple's iOS 16? ft. WWDC'22
Apple revealed iOS 16 in its keynote event at WWDC'22. iOS 16 is a big release with updates that will change the way you experience iPhone. Read to know more about what's new in Apple's iOS 16.
Recommended Articles
Modern SwiftUI: Identified arrays
The List
and ForEach
views in SwiftUI are foundational and incredibly easy to get started with. However, if used naively, particularly using plain arrays, it is possible to introduce subtle bugs and crashes to your applications. This article will explain to you how to avoid those problems by using the IdentifiedArray
type.
Ambiguous Decoding
Dealing with a JSON network response in iOS projects used to be a pain. In Swift 4, we got native support for encoding and decoding JSON in the form of JSONEncoder
and JSONDecoder
that worked side-by-side with two protocols Encodable
and Decodable
to make converting between Swift types and JSON easy-peasy. Read to learn more..
How to use SwiftUI as UIViewController in Storyboard
Integrating SwiftUI view using UIHostingController
and IBSegueAction
is suitable in a situation where you want to present a new view controller, e.g., push to the navigation stack or present a modal. This article will explain How to use SwiftUI as UIViewController in Storyboard using this approach.
Creating Custom SF Symbols
Most of the time we use SFSymbols provided by Apple itself. But how about creating custom SF Symbols? Yeah, you can create your own custom symbols by following this article.
Special Announcement 🥳
UIKit Fundamental Session
Hey iOS Developers,
Come join us as we explore the UIKit framework! This session will be focused on the fundamentals of working with UIKit, and is meant for developers who are new to iOS development, or who want to brush up on their UIKit skills.
It's one of the very first sessions in the Swift Anytime Learning series and it's just the beginning, you'll get more such free sessions on multiple different topics in iOS development in the coming days. So, stay tuned.
And, the best part is you can join it for FREE!!
Jobs
iOS Developer - JPMorgan Chase & Co.
Location: Bengaluru, Karnataka, India
Company Description: JPMorgan Chase & Co., one of the oldest financial institutions, offers innovative financial solutions to millions of consumers, small businesses, and many of the world’s most prominent corporate, institutional, and government clients under the J.P. Morgan and Chase brands. Our history spans over 200 years and today we are a leader in investment banking, consumer and small business banking, commercial banking, financial transaction processing, and asset management.
Senior Consultant (Mobile App Development) - Visa
Location: Bengaluru, Karnataka, India
Company Description: Visa is a world leader in digital payments, facilitating more than 215 billion payments transactions between consumers, merchants, financial institutions and government entities across more than 200 countries and territories each year. Our mission is to connect the world through the most innovative, convenient, reliable and secure payments network, enabling individuals, businesses and economies to thrive.
Lead Software Engineer - iOS - EPAM Systems
Location: Hyderabad, Bangalore, Pune, Chennai, Gurgaon
Company Description: Since 1993, EPAM Systems, Inc. (NYSE: EPAM) has leveraged its advanced software engineering heritage to become the foremost global digital transformation services provider – leading the industry in digital and physical product development and digital platform engineering services. Through its innovative strategy; integrated advisory, consulting, and design capabilities; and unique ‘Engineering DNA, EPAM’s globally deployed hybrid teams help make the future real for clients and communities around the world by powering better enterprise, education, and health platforms that connect people, optimize experiences, and improve people’s lives.
Cracking the iOS Interview
What are property observers in Swift?
In Swift, you can attach property observers to variables to perform a task when the value of the variable changes. These property observers are called willSet
and didSet
. The former runs right before the property changes, and the latter immediately after the changes are made.
In Swift, the didSet
and willSet
methods act as property observers.
willSet
: Runs a piece of code right before property changes.didSet
: Runs a piece of code right after the property has changed.
What is difference between open and final in Swift?
In Swift, the open keyword is used to indicate that a class, struct, or protocol can be subclassed or extended by other classes, structs or protocols within the same module or by other modules. This allows for greater flexibility in object-oriented programming and code reuse.
On the other hand, the final keyword is used to indicate that a class, struct, or protocol cannot be subclassed or extended. This means that once a class, struct, or protocol is marked as final, it cannot be used as a superclass or as a parent protocol.
iOS Good Practices
Are you aware of the life cycle of a UIViewController?
Being an iOS developer, it is very helpful to know the UIViewController life cycle in iOS. It helps you understand the different stages of a view controller's lifecycle and how to properly handle events and actions at each stage. This knowledge is necessary for creating stable and efficient iOS apps that properly handle memory management and user interactions. Additionally, understanding the UIViewController life cycle can help you debug issues and improve the overall user experience of your app.