Skip to main content

Around2Me – Instantly Discover Nearby Essentials

In today’s fast-paced world, finding what you need — exactly when you need it — should be effortless. That’s where Around2Me comes in. Whether you're navigating a new city, running errands, or just looking for a bite nearby, Around2Me helps you instantly find nearby essentials like ATMs, restaurants, hospitals, gas stations , and much more. Around2Me 🚀 What Makes Around2Me Different? Unlike many location-based apps that are bloated with unnecessary features or force users to sign up, Around2Me is lightweight, private, and instant . Here's how: 📍 Location-Based Discovery The app instantly detects your current location and shows you relevant nearby places — from pharmacies to petrol pumps, cafes to banks. 🗺️ Map Integration Tap any place to view it on the map and get turn-by-turn directions in seconds. 🧩 Clean Categories Looking for something specific? Use quick-access filters like Hospitals , ATMs , Coffee Shops , or Parking . 🔐 No Signups, No Data Collection ...

Encodable and Decodable With (Codable = Decodable + Encodable) in Swift


Encodable and Decodable With (Codable = Decodable + Encodable)


Encodable : - "Encodable means convert Request Parameters(Model) to Data"

By using the Encodable protocol we can generate request parameters by Model Class / Struct

struct AddProduct: Encodable{

    var title: String = ""

    init(title: String){

        self.title = title

    }

}


Decodable: -  "Decodable means convert Data to Request Parameters(Model)"

By using the Decodable protocol we can convert API response in Model Class / Struct. When done with API call decoding the response in terms of UserResponse object

struct ProductResponse: Decodable {

    let id: Int

    let title: String

}

Codable = Decodable + Encodable

Codable :-  typealias of Encodable +  Decodable

Codable is a type alias for the 'Encodable' and 'Decodable' protocols. 

When you use 'Codable' as a type or a generic constraint, it matches 

Any type that conforms to both protocols. 

public typealias Codable = Decodable & Encodable

struct AddProduc: Codable{

    var id: Int = 0

    var title: String = ""

    

    init(title: String){

        self.title = title

    }

} 

Comments