Skip to content

Commit

Permalink
Added check for already presented Sentinel view controller (#26)
Browse files Browse the repository at this point in the history
* Added check for already presented Sentinel view controller

* Sentinel version upgraded, pod update
  • Loading branch information
ilucijabalja authored Apr 19, 2023
1 parent bb8dbc2 commit a37ee56
Show file tree
Hide file tree
Showing 12 changed files with 60 additions and 49 deletions.
18 changes: 9 additions & 9 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
PODS:
- Sentinel (1.1.1):
- Sentinel/Default (= 1.1.1)
- Sentinel/Core (1.1.1)
- Sentinel/CustomLocation (1.1.1):
- Sentinel (1.1.2):
- Sentinel/Default (= 1.1.2)
- Sentinel/Core (1.1.2)
- Sentinel/CustomLocation (1.1.2):
- Sentinel/Core
- Sentinel/Default (1.1.1):
- Sentinel/Default (1.1.2):
- Sentinel/Core
- Sentinel/CustomLocation
- Sentinel/TextEditing
- Sentinel/UserDefaults
- Sentinel/TextEditing (1.1.1):
- Sentinel/TextEditing (1.1.2):
- Sentinel/Core
- Sentinel/UserDefaults (1.1.1):
- Sentinel/UserDefaults (1.1.2):
- Sentinel/Core

DEPENDENCIES:
Expand All @@ -22,8 +22,8 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
Sentinel: 620185762371cdd6615c4f5e21519dfa3a9ad3fd
Sentinel: 35a8bf4cf907cc64866f816447ff2387e09a2a6a

PODFILE CHECKSUM: b1ea13fb80f56c4238650f0da0299d23734a6421

COCOAPODS: 1.11.3
COCOAPODS: 1.12.0
4 changes: 2 additions & 2 deletions Example/Pods/Local Podspecs/Sentinel.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 23 additions & 21 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Sentinel.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'Sentinel'
s.version = '1.1.1'
s.version = '1.1.2'
s.summary = 'Developer\'s toolbox for debugging applications'

s.description = <<-DESC
Expand Down
9 changes: 8 additions & 1 deletion Sentinel/Classes/Core/SourceScreenProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class SourceScreenProviders: NSObject {
}
}

/// Defines detauls source screen provider used for presenting the Sentinel.
/// Defines default source screen provider used for presenting the Sentinel.
@objcMembers
public class DefaultSourceScreenProvider: NSObject, SourceScreenProvider {

Expand All @@ -53,6 +53,13 @@ public class DefaultSourceScreenProvider: NSObject, SourceScreenProvider {
topController = newTopController
}

if
let navController = topController as? UINavigationController,
navController.visibleViewController is SentinelTabBarController
{
return nil
}

return topController
}
}

0 comments on commit a37ee56

Please sign in to comment.