{"id":18266368,"url":"https://github.com/zeeshan2k2/swift-data-flow","last_synced_at":"2025-04-09T02:20:18.510Z","repository":{"id":235933792,"uuid":"791563821","full_name":"zeeshan2k2/Swift-Data-Flow","owner":"zeeshan2k2","description":"iOS Apps demonstrating forward and backward data flow in Swift using different methods.","archived":false,"fork":false,"pushed_at":"2024-09-08T08:50:59.000Z","size":509,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T01:36:39.777Z","etag":null,"topics":["callback-functions","delegate-methods","delegates","property-assignment","swift","uikit"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zeeshan2k2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-25T00:14:55.000Z","updated_at":"2024-09-08T08:51:02.000Z","dependencies_parsed_at":"2024-04-25T02:10:01.432Z","dependency_job_id":"3756c8b0-2486-467b-90cf-f1bf7511fcc5","html_url":"https://github.com/zeeshan2k2/Swift-Data-Flow","commit_stats":null,"previous_names":["zeeshan2k2/data-flow"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeeshan2k2%2FSwift-Data-Flow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeeshan2k2%2FSwift-Data-Flow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeeshan2k2%2FSwift-Data-Flow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeeshan2k2%2FSwift-Data-Flow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeeshan2k2","download_url":"https://codeload.github.com/zeeshan2k2/Swift-Data-Flow/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247962888,"owners_count":21024918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["callback-functions","delegate-methods","delegates","property-assignment","swift","uikit"],"created_at":"2024-11-05T11:23:03.166Z","updated_at":"2025-04-09T02:20:18.489Z","avatar_url":"https://github.com/zeeshan2k2.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003eData Passing in Swift Apps\u003c/h1\u003e\nThis repository contains examples of data passing techniques in Swift for iOS development. The focus is on demonstrating various methods for forwarding and backward data passing between view controllers.\n\n\u003ch1\u003eData Passing Techniques\u003c/h1\u003e\n\u003ch2\u003e1. Direct Property Assignment (Forward Data Passing)\u003c/h2\u003e\nDescription: This method is used to set properties directly on a view controller before presenting it. It's straightforward and typically used for simple forward data passing.\n\nExample: Passing data from ViewController to TextViewController.\n\n\u003ch2\u003e2. Callback-Based Data Passing (Backward Data Passing)\u003c/h2\u003e\nDescription: This method uses completion handlers (callbacks) to send data back to the previous view controller after it is dismissed. It's useful for handling results or updates after an action.\n\nExample: Sending text from TextViewController back to ViewController using a completion handler.\n\n\u003ch2\u003e3. Delegate Methods (Both Forward and Backward Data Passing)\u003c/h2\u003e\nDescription: Delegates are a flexible way to handle communication between view controllers or objects. They allow for both forward and backward data passing with a decoupled approach.\n\nExample: Implementing a delegate protocol to pass text from TextViewController to ViewController.\n\n\u003ch1\u003eRepository Structure\u003c/h1\u003e\nForward Data Passing: Shows how to use direct property assignment for passing data forward.\nBackward Data Passing: Demonstrates using callback methods to pass data backward.\nDelegate Methods: Illustrates using delegate protocols for both forward and backward data passing.\n\n\n\n\u003ch1\u003e ScreenShots \u003c/h1\u003e\n\n**Forward Data Flow**\n\n\u003cimg src=\"https://github.com/zeeshan2k2/Swift-Data-Flow/blob/main/Data%20Flow%20Forward%20-%20Direct%20Property%20Assignment/DF%20forward%20-%20app%20icon.png\" width=\"100\" height=\"100\"\u003e\n\u003cimg src=\"https://github.com/zeeshan2k2/Swift-Data-Flow/blob/main/Data%20Flow%20Forward%20-%20Direct%20Property%20Assignment/DF%20-%20main%20page.png\" width=\"250\" height=\"500\"\u003e\n\u003cimg src=\"https://github.com/zeeshan2k2/Swift-Data-Flow/blob/main/Data%20Flow%20Forward%20-%20Direct%20Property%20Assignment/DF%20-%201.png\" width=\"250\" height=\"500\"\u003e\n\n\n**Backward Data Flow**\n\n\u003cimg src=\"https://github.com/zeeshan2k2/Swift-Data-Flow/blob/main/Data%20Flow%20Backward%20-%20Callback-Based%20Data%20Passing/Data%20Flow%20backward%20-%20appicon.png\" width=\"100\" height=\"100\"\u003e\n\u003cimg src=\"https://github.com/zeeshan2k2/Swift-Data-Flow/blob/main/Data%20Flow%20Backward%20-%20Callback-Based%20Data%20Passing/DF%20-%20main.png\" width=\"250\" height=\"500\"\u003e\n\u003cimg src=\"https://github.com/zeeshan2k2/Swift-Data-Flow/blob/main/Data%20Flow%20Backward%20-%20Callback-Based%20Data%20Passing/DF%20-%201.png\" width=\"250\" height=\"500\"\u003e\n\u003cimg src=\"https://github.com/zeeshan2k2/Swift-Data-Flow/blob/main/Data%20Flow%20Backward%20-%20Callback-Based%20Data%20Passing/DF%20-%202.png\" width=\"250\" height=\"500\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeeshan2k2%2Fswift-data-flow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeeshan2k2%2Fswift-data-flow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeeshan2k2%2Fswift-data-flow/lists"}