Swiftpack.co - RichAppz/iOS-MailClients as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by RichAppz.
RichAppz/iOS-MailClients 0.2.0
Mail Client Service - Connecting you to more than just Mail
⭐️ 5
🕓 1 year ago
.package(url: "https://github.com/RichAppz/iOS-MailClients.git", from: "0.2.0")

iOS-MailClients

Mail Client Service - Connecting your consumers to more than just Mail

Swift Version PRs Welcome

This Pod allows you to connect to more than one mail client with ease. Presenting a UIAlertController with multiple options based on what client is installed.

Currently Available Clients

  • ☑ Mail
  • ☑ Gmail
  • ☑ Inbox
  • ☑ Outlook
  • ☑ Spark
  • ☑ Newton
  • ☑ Airmail

Requirements

  • iOS 10.0+

Installation

CocoaPods

You can use CocoaPods to install iOSMailClients by adding it to your Podfile:

platform :ios, '10.0'
use_frameworks!
pod 'iOSMailClients'

To get the full benefits import iOSMailClients wherever you import UIKit

import UIKit
import iOSMailClients

Usage example

import iOSMailClients

/// To allow the service to just open the client
MailService.request(fromVC: self)

/// To allow the service to compose an email - (mailto is a requirement)
MailService.request(fromVC: self, subject: "Test Subject", body: "Test Body", mailto: "[email protected]")

alt text

Plist Requirements

You will need to add this snippet to your project plist to enable the URL Schemes for the available clients

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>googlegmail</string>
    <string>cloudmagic</string>
    <string>inbox-gmail</string>
    <string>ms-outlook</string>
    <string>readdle-spark</string>
    <string>airmail</string>
</array>

Contribute

We would love you for the contribution to iOSMailClients, check the LICENSE file for more info.

Meta

Rich Mucha – @RichAppz[email protected]

Distributed under the Apache License 2.0. See LICENSE for more information.

https://github.com/richappz/

Copyright 2018 Rich Mucha, RichAppz Limited

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

GitHub

link
Stars: 5
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

0.2.0 Fix to Gmail opening
1 year ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics