Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yudiz-solutions/yzsocialshare
Share Content and Image to Facebook, twitter, Instagram, mail and to mobile number via sms.
https://github.com/yudiz-solutions/yzsocialshare
Last synced: about 1 month ago
JSON representation
Share Content and Image to Facebook, twitter, Instagram, mail and to mobile number via sms.
- Host: GitHub
- URL: https://github.com/yudiz-solutions/yzsocialshare
- Owner: yudiz-solutions
- Created: 2017-01-04T11:45:36.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-10-31T13:18:03.000Z (about 1 year ago)
- Last Synced: 2023-11-01T13:39:19.164Z (about 1 year ago)
- Language: Swift
- Size: 2.75 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# YZSocial Share
Share Content and Image to Facebook, twitter, Instagram, mail and to mobile number via sms.* share content , url and image into social networtk like facebook, twitter, email, messanger and instagrtam
* used native iOS api
![Toast message](https://github.com/yudiz-solutions/YMSocialShare/blob/master/Screenshort/image.gif)And here's some code! :+1:
* facebook and twitter
```
YZSocialShare.shareOn(serviceType:.facebook, text:"facebook", url:"www.yudiz.com",image:UIImage(named:"steve jobs"))
YZSocialShare.shareOn(serviceType:.twitter, text:"twitter", url:"www.yudiz.com")
```
* mail and messanger (with attachment)
```
// mail with attchament
let attachment = (data: UIImagePNGRepresentation(UIImage(named:"steve jobs")),fileName:"steve.png") // create attachment
YZSocialShare.shareOnMail(recipients:"[email protected]", subject:"Test", body:"Hello", attachment:attachment)// Messanger
YZSocialShare.shareOnMessanger(recipients:"9638527410","9632587410", subject:"Test", body:"Hello")```
* instagram and other apps
```
/* Add this key into plist file
LSApplicationQueriesSchemes
*/YZSocialShare.shareOnInstagram(text:"my first post", image:UIImage(named:"steve jobs"))
// Other apps
YZSocialShare.shareOn(serviceType:.otherApps,text:"Yudiz",image:UIImage(named:"steve jobs"))
```