Latest 0.3.4
Homepage https://github.com/bmoliveira/BOShareComposer
License MIT
Platforms ios 8.0
Dependencies SnapKit, Kanna
Authors

Version
License
Platform

Example

Its really simple you just need to push the ViewController by a static method with content and options:

 BOShareViewController
      .presentShareViewController(from: self,
                                  shareContent: shareContentWithoutMetaData,
                                  options: shareOptionsNoMetadata) { (completed, updatedContent) in
                                    print(updatedContent)
    }

Share options

Options to customize the popup

public struct ShareOptions {

  // Buttons tint color
  public var tintColor: UIColor?

  // Composer title
  public var title: String

  // Dismiss button text
  public var dismissText: String

  // Completion button text
  public var confirmText: String

  // Parse link metadata and show image
  public var showMetadata = true

  // Keyboard appearence
  public var keyboardAppearance: UIKeyboardAppearance
}

ShareContent

Content to present to user

public struct ShareContent {
  // Starting text - and after a send is tapped the resulting text of user input
  public var text: String

  // If you want to specify a URL to the content - This url does no show in the editor
  // With this url the metadata will be fetched
  public let link: NSURL?

  // If you are sending a message to a specific user add it here
  public let destinationUserId: String?
}

Installation

BOShareComposer is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "BOShareComposer"

Author

Bruno Oliveira, [email protected]

License

BOShareComposer is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "BOShareComposer",
    "version": "0.3.4",
    "summary": "A simple text + URL share composer",
    "description": "Composer like share to do custom shares, example: share via direct message twitter they dont havenany composer to send direct messages",
    "homepage": "https://github.com/bmoliveira/BOShareComposer",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Bruno Oliveira": "[email protected]"
    },
    "source": {
        "git": "https://github.com/bmoliveira/BOShareComposer.git",
        "tag": "0.3.4"
    },
    "social_media_url": "https://twitter.com/_bmoliveira",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "BOShareComposer/Classes/**/*",
    "dependencies": {
        "SnapKit": [
            "= 0.21.1"
        ],
        "Kanna": [
            "~> 1.1"
        ]
    }
}

Pin It on Pinterest

Share This