Skip to main content

Posts

Showing posts from August, 2023

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 ...

Delegate Example in swift

 Add Two Number With Simple Delegate - Swift delegate protocol is with simple examples to understand the delegate pattern using protocols in swift.                  import UIKit         import PlaygroundSupport                   PlaygroundPage. current .needsIndefiniteExecution = true         class Developer {             var manager : Manager?             func developerWillAddTwoNumbers ( a : Int , b : Int ){                 let result = a + b                 manager ?.addTwoNumber(result: result)             }         }         class Manager {             var developer : Developer?      ...

Protocol oriented programming Best Way in swift

Protocols in swift are the best way to make your swift code        import UIKit     import Foundation     protocol ElectricityEquipment {         var voltage : Int ? { get set }         func start ()         func stop ()     }     protocol WaterElectricityEquipment {         var voltage : Int ? { get set }         var waterLevel : Int ? { get set }         func start ()         func stop ()     }     class Microwave : ElectricityEquipment {         var voltage : Int ?                  init ?( _voltage : Int ){             guard 50 ... 100 ~= _voltage else {                 print ( "Required valtage is not in the rang...

Dependency Injection swift with constructor injection or property injection

Dependency Injection  Dependency injection in swift is a design pattern achieved by designing your code in a way that your objects or functions receive objects that they depend on, instead of creating their own and avoid loosely coupled  We are going to explore Example such as  1. Constructor injection  2. Property injection  These two are the types of dependency injection that are used most of the time in swift programming language and if you use them during ios development your code program will have no hidden dependency. This swift Example has easy to understand dependency injection concept.  This Example Class Event has Hidden Dependency of HttpClient Create in function object internal. Only getEventRecord function have know Dependency HttpClient.  let client: HttpClient  = HttpClient() is a hidden Dependency                  import  Foundation          import...