About MWOpenInKit
MWOpenInKit is a powerful open-source framework for iOS that provides an elegant way to handle the “open in” functionality in your app. It allows users to share and open files from your app with other apps installed on their device.
With MWOpenInKit, you can easily implement actions such as sharing files via email, opening files in third-party apps, and more. It simplifies the process of interacting with other apps, enhancing user experience and extending the capabilities of your own app.
Features
- Easy integration with just a few lines of code
- Supports various file formats, including documents, images, videos, and more
- Option to share files via email
- Quickly open files using other apps installed on the device
- Seamless compatibility with popular third-party apps
- Customizable user interface to match your app’s design
- Support for both iPhone and iPad
- Well-documented and actively maintained
Requirements
- iOS 11.0+
- Xcode 12+
- Swift 5.0+
Installation
You can install MWOpenInKit using CocoaPods. Simply add the following line to your Podfile:
pod 'MWOpenInKit'
Then, run the command pod install
to fetch the MWOpenInKit framework and integrate it into your Xcode project.
Usage
Using MWOpenInKit in your app is straightforward. Follow the steps below to get started:
- Import MWOpenInKit in your view controller:
import MWOpenInKit
- Implement the delegate protocol
MWOpenInDelegate
in your view controller:
class YourViewController: UIViewController, MWOpenInDelegate { ... }
- Instantiate the
MWOpenIn
class:
let openIn = MWOpenIn(delegate: self)
- Use the available methods to share or open files:
// Share a file via email
openIn.shareFileViaEmail(filePath: "path/to/your/file")
// Open a file in another app
openIn.openFileInAnotherApp(filePath: "path/to/your/file")
That’s it! With these steps, you can start using MWOpenInKit to implement the “open in” functionality in your app.
Documentation
For detailed information on how to use MWOpenInKit and its available methods, properties, and delegate protocols, please refer to the official GitHub repository.
Contributing
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please create a new issue on the GitHub repository.
License
MWOpenInKit is available under the MIT license. See the LICENSE file for more information.