{"id":20478116,"url":"https://github.com/swiftui-plus/mailview","last_synced_at":"2025-04-13T13:13:06.648Z","repository":{"id":116152826,"uuid":"400853621","full_name":"SwiftUI-Plus/MailView","owner":"SwiftUI-Plus","description":"A SwiftUI view that enables you to properly present a MFMailComposeViewController. (iOS)","archived":false,"fork":false,"pushed_at":"2024-04-11T23:02:28.000Z","size":19,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T04:12:33.726Z","etag":null,"topics":["ios","mail","mailcomposer","swift","swiftui"],"latest_commit_sha":null,"homepage":"https://benkau.com/packages.json","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/SwiftUI-Plus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-08-28T17:38:59.000Z","updated_at":"2024-08-24T14:26:22.000Z","dependencies_parsed_at":"2024-04-11T23:48:14.322Z","dependency_job_id":null,"html_url":"https://github.com/SwiftUI-Plus/MailView","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftUI-Plus%2FMailView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftUI-Plus%2FMailView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftUI-Plus%2FMailView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftUI-Plus%2FMailView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SwiftUI-Plus","download_url":"https://codeload.github.com/SwiftUI-Plus/MailView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248717237,"owners_count":21150389,"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":["ios","mail","mailcomposer","swift","swiftui"],"created_at":"2024-11-15T15:35:15.678Z","updated_at":"2025-04-13T13:13:06.628Z","avatar_url":"https://github.com/SwiftUI-Plus.png","language":"Swift","readme":"![ios](https://img.shields.io/badge/iOS-14-green)\n![ios](https://img.shields.io/badge/macOS-11-green)\n\n# MailView\n\nA SwiftUI view that enables you to properly present the default email client composer for both iOS and macOS.\n\n## Features\n\n- Modern SwiftUI implementation.\n- Structured approach with custom types for Mail, Message, Attachment.\n- Full concurrency support for attachments with low-memory consumption.\n- Support for `mailto` strings, so you can instantiate `Mail` using mailto value.\n- Familiar API (similar to ShareLink, PasteButton, etc)\n\n## Example\n\n```swift\n@State private var mail: Mail = .init(\n    to: \"foo@bar.com\",\n    subject: \"Hello, world!\",\n    message: \"Lorem ipsum...\"\"\n)\n\nvar body: some View {\n    MailButton(mail: mail)\n}\n```\n\n__Custom label__ \n\n```swift\nvar body: some View {\n    MailButton(mail: mail) {\n        Text(\"Custom label\")\n    }\n}\n```\n\n__Mail is `ExpressibleByStringLiteral`__\n\n```swift\n// Create a `Mail` type with its `to` property set.\nmail = \"foo@bar.com\"\n\n// You can even pass an entire `mailto:` string:\nmail = \"mailto:foo@bar.com\u0026subject=Foo\u0026body=Bar\"\n```\n\n## Installation\n\nThe code is packaged as a framework. You can install manually (by copying the files in the `Sources` directory) or using Swift Package Manager (**preferred**)\n\nTo install using Swift Package Manager, add this to the `dependencies` section of your `Package.swift` file:\n\n`.package(url: \"https://github.com/SwiftUI-Plus/MailView.git\", .upToNextMinor(from: \"2.0.0\"))`\n\n\u003e Note: The package requires iOS v13+\n\n## Other Packages\n\nIf you want easy access to this and more packages, add the following collection to your Xcode 13+ configuration:\n\n`https://benkau.com/packages.json`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftui-plus%2Fmailview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswiftui-plus%2Fmailview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftui-plus%2Fmailview/lists"}