Difference between == and === in Swift
== - Compares the value of the variable
=== - Along with value the data type also need to be matched.
seen from United States
seen from China
seen from United States
seen from United States

seen from Malaysia
seen from United States
seen from China
seen from China

seen from Germany
seen from United States
seen from United States

seen from Netherlands

seen from United States

seen from Germany
seen from Germany

seen from Malaysia
seen from United States
seen from Germany

seen from Italy
seen from Russia
Difference between == and === in Swift
== - Compares the value of the variable
=== - Along with value the data type also need to be matched.
Protocols in Swift
What is a Protocol?
In swift protocol is considered as a major property which we use frequently.
It basically means what are the things we are necessary to be handled. It is considered as a set of rules which are mandatory to define on using the protocol
Ex: consider a Vehicle
If we need to buy a car what are the things we take care first (speed, milage, kms) so these are the necessary things that everyone needs to know.
So, we declare all of them in a protocol
Any vehicle need to satisfy these properties(car/bus/plane)
Structure of Protocol:
Here every protocol have mandatory rules soo
Any class which conforms to this protocol need to provide definition for this.
In simple words for people who knows Java Programming Language
Protocol is just like an interface in Java
Any class which implements that interface need to provide definition.
API INTEGRATION IN SWIFT(part 1)
API means Application Programming Interface
It's main purpose is to bring applications together in order to perform a designed function.
It helps us to make repetitive yet complex processes highly reusable with a little bit if code.
Overview of API
Via theory wise first in order to get the data from API we need to send a request.
So, we prepare a request object.
A Request object contains
• URL
• Header Parameters
• Body Data
In code wise we need to follow several steps to achieve that task of getting the data via API
So theory wise get to know these things.
We will continue this in the next part🤗
Happy learning!!
Main purpose of Swift
• It is a powerful and intuitive programming language built using a modern approach for iOS.
• It ensures safety, performance and software design patterns.
• The syntax is concise yet expressive.
• The modern features included in it makes developers love it!!
Methods in Swift
What is a method in swift?
Methods are considered as small piece of code that is reusable. They belong to the classes, enums, structs.
Methods use func as a keyword to provide a definition
Structure of method:
These methods are placed inside the class, struct Or enum.
Swift allows classes to have methods with the same name but there need to be a difference either in
Number of parameters
Datatype of parameters
Order of parameters
Name of parameters
Methods can have a return type as well. Usually that return type is placed at end of the method.
IOS App Development by @hrsoftbd
HRSOFT BD stands as a trusted leader in iOS app development, delivering full-stack iPhone and iPad solutions that transform visionary ideas
IOS App Development by @hrsoftbd
HRSOFT BD stands as a trusted leader in iOS app development, delivering full-stack iPhone and iPad solutions that transform visionary ideas
Best Software Develop for Beginner
In the would the software development beginner are getting the job opportunity. The Kerala has emerged as one of the most after destinations for technology training. All the program for software app like iOS app development takes precedence. Some of the best training institutes there offer practical classes, real world project experiences and the mentoring by skilled developers. In the software of iOS learning they get trained in the Swift, Xcode, and other tools of Apple. That the reason why best iOS app development training Centre in Kerala offers some of the best training centers is due to the combination of a strong educational approach along with a comfortable environment for the learning for beginner.