Skip to content

Commit

Permalink
Minor Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
omidgolparvar committed Jun 8, 2019
1 parent a476d42 commit 1a94267
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
Binary file not shown.
6 changes: 5 additions & 1 deletion Vazhegan/Controllers/SettingsController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ extension SettingsController {

private func action_ShareApp() {
let text = "📱 واژگان" + "\n" + V.AppDownloadLink
id_PresentActivityController(forItems: [text], customActivities: nil, sourceView: tableView)
let activityViewController = UIActivityViewController(activityItems: [text], applicationActivities: nil)
activityViewController.popoverPresentationController?.sourceView = self.view
activityViewController.popoverPresentationController?.sourceRect = self.view.bounds
activityViewController.popoverPresentationController?.permittedArrowDirections = []
self.present(activityViewController, animated: true, completion: nil)
}

}
8 changes: 6 additions & 2 deletions Vazhegan/Controllers/WordController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ final class WordController: UIViewController {
private var getMeaningRequest : MiniAlamo.DataRequest?

var shouldViewAddToMyWordsButton : Bool = true
weak var word : Word!
weak var word : Word!

override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
Expand All @@ -46,7 +46,11 @@ final class WordController: UIViewController {

@IBAction func action_ShareWord(_ sender: UIButton) {
let text: String = word.titlePersian + " " + "(\(word.database.name))" + "\n\n" + word.fullText + "\n\n\n" + "📱 واژگان" + "\n" + V.AppDownloadLink
self.id_PresentActivityController(forItems: [text], customActivities: nil, sourceView: sender)
let activityViewController = UIActivityViewController(activityItems: [text], applicationActivities: nil)
activityViewController.popoverPresentationController?.sourceView = sender
activityViewController.popoverPresentationController?.sourceRect = sender.bounds
activityViewController.popoverPresentationController?.permittedArrowDirections = .down
self.present(activityViewController, animated: true, completion: nil)
}

@IBAction func action_ToggleForMyWord(_ sender: UIButton) {
Expand Down
4 changes: 2 additions & 2 deletions Vazhegan/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.0</string>
<string>2.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -32,7 +32,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>404</string>
<string>412</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
Expand Down
4 changes: 2 additions & 2 deletions VazheganActionExtension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>2.0</string>
<string>2.1</string>
<key>CFBundleVersion</key>
<string>404</string>
<string>412</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
Expand Down

0 comments on commit 1a94267

Please sign in to comment.