Welcome to the InterviewQuestionBank, a curated resource for mastering technical interviews. This repository provides comprehensive questions and detailed answers across various Swift, iOS, and software engineering topics.
- Classes
- Structures
- Actors
- Properties & Initializers
- Enumerations
- Functions, Methods & Closures
- Protocol & Delegation
- UIViewController Lifecycle
- UIKit Framework
- SwiftUI Framework
- Concurrency
- Generics & Error Handling
- Networking
- Combine Framework
- Memory Management
- App Performance
- App Security
- SOLID Principles
- Bluetooth, WebSocket, IoT
- Miscellaneous Swift Questions
- Click on any topic above to access its dedicated question bank.
- Each file contains multiple questions along with detailed answers and code examples.
- Feel free to contribute or open an issue if you'd like to see additional topics covered!
We welcome contributions from the community. If you have new interview questions or improvements to existing answers, feel free to submit a pull request or open an issue.
- Fork this repository
- Add your changes or new questions under the respective topic file
- Submit a pull request
Here’s how each question will be formatted inside each topic file:
Answer: A class in Swift is a blueprint for creating objects. It supports inheritance, meaning you can create subclasses that inherit properties and methods from the parent class.
class Animal {
var name: String
init(name: String) {
self.name = name
}
func speak() {
print("\(name) makes a sound")
}
}