-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from adisve/ui/settings
UI/settings
- Loading branch information
Showing
90 changed files
with
1,043 additions
and
431 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file modified
BIN
+26.9 KB
(100%)
.../project.xcworkspace/xcuserdata/adisveletanlic.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
tumble-ios/App/Domain/Model/Presentation/SideBarSheetModel.swift
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
tumble-ios/App/Extensions/Presentation/View/UIApplicationExtension.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// | ||
// UIApplicationExtension.swift | ||
// tumble-ios | ||
// | ||
// Created by Adis Veletanlic on 2023-03-30. | ||
// | ||
|
||
import Foundation | ||
import StoreKit | ||
import UIKit | ||
|
||
extension UIApplication { | ||
|
||
// Override variable | ||
private var keyWindow: UIWindow? { | ||
// Get connected scenes | ||
return UIApplication.shared.connectedScenes | ||
// Keep only active scenes, onscreen and visible to the user | ||
.filter { $0.activationState == .foregroundActive } | ||
// Keep only the first `UIWindowScene` | ||
.first(where: { $0 is UIWindowScene }) | ||
// Get its associated windows | ||
.flatMap({ $0 as? UIWindowScene })?.windows | ||
// Finally, keep only the key window | ||
.first(where: \.isKeyWindow) | ||
} | ||
|
||
func requestReview() -> Void { | ||
if let keyWindow = UIApplication.shared.keyWindow, let windowScene = keyWindow.windowScene { | ||
SKStoreReviewController.requestReview(in: windowScene) | ||
} | ||
} | ||
|
||
func shareFeedback() -> Void { | ||
if let url = URL(string: "mailto:tumblestudios.app@gmail.com") { | ||
UIApplication.shared.open(url) | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.