Skip to content
View AghaShahriyar's full-sized avatar

Block or report AghaShahriyar

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. #Swift #Model #Structure #Extension #Swift #Model #Structure #Extension
    1
    // API Response
    2
    let response = [
    3
        
    4
        "data" : [
    5
            "fstName" : "Jack",
  2. Enums in swift Enums in swift
    1
    enum Status {
    2
        case ACTIVE
    3
        case PENDING
    4
        case BLOCK
    5
    }
  3. Load image using Extension in swift Load image using Extension in swift
    1
    extension UIImageView { 
    2
        func loadImage(URL : URL?, name : String) {
    3
            self.setImageForName(name, circular: true, textAttributes: nil)
    4
            self.sd_setImage(with:URL) { (image, error, cache, url) in
    5
                if image == nil {
  4. Passing data between ViewControllers... Passing data between ViewControllers using closure in swift
    1
    //Passing Data Between ViewControllers Using Closure 
    2
    
                  
    3
    //In this model, i am considering two viewController i-e PresentViewController and ParentViewController. Closure is used to pass the data from PresentVC to ParentVC after the dismiss of PersentVC.
    4
    
                  
    5
    //PresentViewController
  5. Back to specific ViewController usin... Back to specific ViewController using extension in swift
    1
    extension UINavigationController {
    2
            
    3
        func backToViewController(viewController: Swift.AnyClass) {
    4
            for element in viewControllers as Array {
    5
                if element.isKind(of: viewController) {
  6. Change tinit color of uiImageView in... Change tinit color of uiImageView in App contain multiple targets
    1
    addressIcon.image = addressIcon.image?.withRenderingMode(.alwaysTemplate)
    2
    addressIcon.tintColor = appThemeColor