{"id":20324765,"url":"https://github.com/mahinmuhammad/floatingalertswfitui","last_synced_at":"2026-05-11T14:33:04.650Z","repository":{"id":206820838,"uuid":"717770566","full_name":"MahinMuhammad/FloatingAlertSwfitUI","owner":"MahinMuhammad","description":"swiftUI simple and easy to implement temporary popup Alerts ","archived":false,"fork":false,"pushed_at":"2023-11-12T15:46:05.000Z","size":1526,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T10:26:19.838Z","etag":null,"topics":["alert","ios","popup","smp","swift","swiftpackagemanager","swiftui","toast","xcode"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/MahinMuhammad.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":"2023-11-12T14:44:00.000Z","updated_at":"2023-11-12T15:25:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"9d0adcea-90ab-4b08-bf0c-4b9d79c7ee77","html_url":"https://github.com/MahinMuhammad/FloatingAlertSwfitUI","commit_stats":null,"previous_names":["mahinmuhammad/floatingalertswfitui"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/MahinMuhammad/FloatingAlertSwfitUI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahinMuhammad%2FFloatingAlertSwfitUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahinMuhammad%2FFloatingAlertSwfitUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahinMuhammad%2FFloatingAlertSwfitUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahinMuhammad%2FFloatingAlertSwfitUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MahinMuhammad","download_url":"https://codeload.github.com/MahinMuhammad/FloatingAlertSwfitUI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahinMuhammad%2FFloatingAlertSwfitUI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32899018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["alert","ios","popup","smp","swift","swiftpackagemanager","swiftui","toast","xcode"],"created_at":"2024-11-14T19:37:25.084Z","updated_at":"2026-05-11T14:33:04.631Z","avatar_url":"https://github.com/MahinMuhammad.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FloatingAlert-SwiftUI\n\nFloating Alert is a custom package for swiftUI. It enables simple and easy to implement temporary popup Alerts that autometically fade away after few moments.\n\nIf you like the project, please do not forget to star ★ this repository and follow me on GitHub.\n\n## Preview \n\n\n\nhttps://github.com/MahinMuhammad/FloatingAlertSwfitUI/assets/83515380/074d6500-5a7d-417b-b9a8-8cfa65c6cd06\n\n\n\n## Requirements\n\n* iOS 13.0+\n* Xcode 11.2+\n* Swift 5.0\n* SwiftUI framework\n* swift-tools-version: 5.9\n\n##Features\n\n* Customizable floating alert view with image and message parameters\n* Customizable time parameter to keep the alert on display for a perticular moment\n* Parameters for a cusomized look of the alert view\n\n## Installation\n\n### **Swift Package Manager**\n\nYou can add FloatingAlert-SwiftUI as a dependency in your Swift Package Manager-enabled project. \nFollow these steps to integrate the package into your project:\n\n1. In Xcode, go to \"File\" -\u003e \"Add Packages...\".\n2. Enter the URL of this repository: https://github.com/MahinMuhammad/FloatingAlertSwfitUI\n3. Choose the desired version rule.\n4. Chosse the target where you want to add the package.\n5. Click \"Add Package\".\n6. Wait till Xcode varify and fetch it for you.\n7. Click \"Add Package\".\n\n## Usage\n\nTo use FloatingAlert-SwiftUI in your SwiftUI project, follow these steps:\n\n1. Import the CheckBoxSwiftUI module:\n```swift\nimport FloatingAlert\n```\n\n2. Create a @State property to hold the FloatingAlert view state:\n```swift\n@State var showFloatingAlert = false\n```\n\n3. Use the 'CheckBox' view in your SwiftUI ZStack view hierarchy:\n```swift\nZStack{\n    //other views\n    if viewModel.showCopiedToClipboardAlert {\n        FloatingAlertView(showingNotice: $showFloatingAlert, image: Image(systemName: \"doc.on.clipboard\"), message: \"Copied to Clipboard\")\n    }\n}\n```\n\n4. Add this line when you want to show the alert\n```swift\nshowFloatingAlert = true\n```\n\n5. Customize the FloatingAlert appearance by providing optional parameters:\n```swift\nZStack{\n    //other views\n    if viewModel.showCopiedToClipboardAlert {\n        FloatingAlertView(showingNotice: $viewModel.showCopiedToClipboardAlert, image: Image(systemName: \"doc.on.clipboard\"), activeTime: 1.2, message: \"Copied to Clipboard\", opacity: 0.90, cornerRadious: 35, imageSize: 48)\n    }\n}\n```\n\n## Integration into a complete but simple code:\n\n```swift\nimport SwiftUI\nimport FloatingAlert\n\nstruct ContentView: View {\n@State var showFloatingAlert = false\n\n    var body: some View {\n        ZStack{\n            VStack{\n                Button(\"Copy\") {\n                    showFloatingAlert = true\n                }\n            }\n            .padding()\n            \n            if viewModel.showCopiedToClipboardAlert {\n                FloatingAlertView(showingNotice: $showFloatingAlert, image: Image(systemName: \"doc.on.clipboard\"), message: \"Copied to Clipboard\")\n            }\n        }\n    }\n}\n\n```\n\n\n## Author\n\nMd. Mahinur Rahman, \u003cbr\u003e\niOS Developer \u003cbr\u003e\nrahmanmahin@icloud.com\n\n## Find Me on:\n\n[FaceBook](https://web.facebook.com/mahin5muhammad)\n[Instagram](https://www.instagram.com/mahin5muhammad/)\n[LinkedIn](https://www.linkedin.com/in/rahmanmahin/)\n[Twitter](https://twitter.com/ImMahin)\n[Website](https://mahinmuhammad.github.io/view/home.html)\n[Discord](http://discordapp.com/users/Ghost_Friday#2625)\n\n## Contributing\n\nContributions to FloatingAlert-SwiftUI are welcome! If you encounter any issues or have ideas for improvements, please feel free to open an issue or submit a pull request.\n\n## Feedback\n\nPlease feel free to open any [issue](https://github.com/MahinMuhammad/FloatingAlertSwfitUI/issues)\n\n## License\n\nFloatingAlert-SwiftUI is available under the MIT License. See the LICENSE file for more information.\n\n\u003chr\u003e\n\u003ctable style=\"border:none\"\u003e\n  \u003ctr\u003e  \n    \u003ctd align=\"center\"\u003e\u003cimg src=\"Graphics/mahinsLogo.png\" height=\"250\" width=\"250\"\u003e\u003c/h4\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e  \n    \u003ctd align=\"center\"\u003e\u003ch4\u003eDeveloped by \u003cbr\u003e Md. Mahinur Rahman\u003c/h4\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahinmuhammad%2Ffloatingalertswfitui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahinmuhammad%2Ffloatingalertswfitui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahinmuhammad%2Ffloatingalertswfitui/lists"}