{"id":21145484,"url":"https://github.com/codemillmatt/pluralsight-ios-fab","last_synced_at":"2025-03-14T13:42:44.273Z","repository":{"id":89789427,"uuid":"83919943","full_name":"codemillmatt/pluralsight-ios-fab","owner":"codemillmatt","description":"Example code for iOS floating action button from Moving Beyond the Basics with Xamarin.Forms course","archived":false,"fork":false,"pushed_at":"2017-03-04T20:08:23.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T07:27:39.458Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codemillmatt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-03-04T19:44:04.000Z","updated_at":"2017-03-04T20:08:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"320a9053-3b39-44a0-9805-78b00fadeb5f","html_url":"https://github.com/codemillmatt/pluralsight-ios-fab","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemillmatt%2Fpluralsight-ios-fab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemillmatt%2Fpluralsight-ios-fab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemillmatt%2Fpluralsight-ios-fab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemillmatt%2Fpluralsight-ios-fab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemillmatt","download_url":"https://codeload.github.com/codemillmatt/pluralsight-ios-fab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243589272,"owners_count":20315467,"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":[],"created_at":"2024-11-20T08:40:48.763Z","updated_at":"2025-03-14T13:42:44.238Z","avatar_url":"https://github.com/codemillmatt.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo iOS FAB\nFAB as demo'd in fourth module of the [Moving Beyond the Basics with Xamarin.Forms](https://www.pluralsight.com/courses/xamarin-forms-moving-beyond-basics) course.\n\n## Implementation\nThis is a very simple example, and only meant as a jumping off point. The circle and the \"plus sign\" on the button were implemented with CoreGraphics. \n\nThe drawing of the button occurs in the `Draw` function, which is an overridden function provided by the `UIView` class - which this button derives from.\n\nThe `TouchesBegan` and `TouchesEnded` functions are overridden to provide a means for the button to report when the user is interacting with it. During the `TouchesBegan` a \"tinting\" layer is inserted into the view hierarchy - so provide something of a shadow - so the user can see it's being tapped.\n\nFinally, there is a very simple `EventHandler\u003cEventArgs\u003e ButtonPressed` which gets invoked during the `TouchesEnded` function. This is how the button notifies any subscribers that it has been interacted with. (The `EventArgs` is probably unnecessary in this case - since we're only saying it's been touched.)\n\nHope this helps - and don't forget to rate the course 5 stars! :)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemillmatt%2Fpluralsight-ios-fab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemillmatt%2Fpluralsight-ios-fab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemillmatt%2Fpluralsight-ios-fab/lists"}