Operations

Networking and Resource Management, Debugging, Timers, and KVO

Combining operators, Sequence Operators

Transforming Operators, Filtering Operators

Publisher and Subscriber

Encoding Decoding, Memory Management

struct Employee: Codable{
let name: String
let id: Int
var favoriteToy: Toy?
}
struct Toy: Codable{
let name: String
}
let toy = Toy(name: "Simple Toy")
let employee = Employee(name: "RX", id…

Pattern, Error handling

let coordinate = (10,0,0)
if case (_, 0, 0) = coordinate {
// x can be any value. y and z must be exactly 0.
print("On the x-axis") // Printed!
}
  1. Take one ViewController and another HostingViewController. Hosting controller is responsible to load the swiftui view.
  2. Add a button into view controller and set a segue to HostingViewController when we click the button.
  3. In the segue action we…

Generic, Access Modifiers, Custom operator, Subscript and Keypath

class Cat{
var name: String
init(name: String) {
self.name = name
}
}
class Dog{
var name: String
init(name: String) {
self.name = name
}
}
class Keeper<Animal>{
var name: String
var inMorning: Animal
var inNoon: Animal
init(name: String, morningCare: Animal, afternoonCare…

Building Your Own Types(structures, classes, enumerations and protocols)

Rejaul Hasan

I work as a Sr. software engineer for iOS platform. Available to discuss about any good opportunities or projects.

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