Skip to content

Commit

Permalink
fixed padding
Browse files Browse the repository at this point in the history
  • Loading branch information
aslanyanhaik committed Apr 15, 2020
1 parent 8604ccc commit e43603d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Example/Example/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ extension ViewController {

@IBAction func share(_ sender: Any) {
image.size = 1000
// image.contentInsets = UIEdgeInsets(top: 100, left: 100, bottom: 100, right: 100)
image.contentInsets = UIEdgeInsets(top: 100, left: 100, bottom: 100, right: 100)
let uiImage = try? coder.encode(image)
image.size = 300
image.contentInsets = .zero
image.contentInsets = UIEdgeInsets(top: 8, left: 8, bottom: 8, right: 8)
let vc = UIActivityViewController.init(activityItems: [uiImage!], applicationActivities: nil)
present(vc, animated: true)
}
Expand Down

0 comments on commit e43603d

Please sign in to comment.