turbo-native-initializer 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Controllers/TurboNavigationController.swift +7 -2
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Controllers/ViewController.swift +1 -1
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Delegates/SceneDelegate.swift.tt +1 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Controllers/TurboNavigationController.swift +7 -1
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Controllers/ViewController.swift +1 -1
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Delegates/SceneDelegate.swift.tt +1 -0
- data/lib/turbo_native_initializer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52ff35d610a3d846038f5e159c46a04fe6c9426d4975b09654c2a55744b9ae9d
|
4
|
+
data.tar.gz: 4646660e51e7e5e6b0721a19f9b74506305a5f119c2d3afe29310991f82fc7e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c147b87af14885a7561e407875cbf2b417cd5368409c0ee5e48b1a200c058500e565bd373e922f0e548fa5c27d9923fed2fd93353ea4cb3ac7478f28a38cb3b
|
7
|
+
data.tar.gz: b654caa260551c993b93fbb31d52e68ba38e2ae8959c55f6205df49972bf0db81e87482724f5f0fac10e84b0c5c90edc1eb47c4e1bb71b43feb6ea6280a7ec3b
|
data/CHANGELOG.md
CHANGED
@@ -22,9 +22,14 @@ class TurboNavigationController : UINavigationController {
|
|
22
22
|
}
|
23
23
|
|
24
24
|
// - Create view controller appropriate for url/properties
|
25
|
-
// - Navigate to that with the correct presentation
|
26
25
|
let viewController = makeViewController(for: url, properties: properties)
|
27
|
-
|
26
|
+
|
27
|
+
// - Navigate to that with the correct presentation
|
28
|
+
if session.activeVisitable?.visitableURL != url {
|
29
|
+
navigate(to: viewController, action: options.action, properties: properties)
|
30
|
+
} else {
|
31
|
+
navigate(to: viewController, action: .replace, properties: properties)
|
32
|
+
}
|
28
33
|
|
29
34
|
// Initiate the visit with Turbo
|
30
35
|
if isVisitable(properties) {
|
@@ -13,7 +13,7 @@ final class ViewController: VisitableViewController, ErrorPresenter {
|
|
13
13
|
}
|
14
14
|
|
15
15
|
private lazy var dismissModalButton = {
|
16
|
-
UIBarButtonItem(
|
16
|
+
UIBarButtonItem(image: UIImage(systemName: "chevron.down"), style: .plain, target: self, action: #selector(dismissModal))
|
17
17
|
}()
|
18
18
|
|
19
19
|
@objc private func dismissModal() {
|
@@ -24,7 +24,13 @@ class TurboNavigationController : UINavigationController {
|
|
24
24
|
// - Create view controller appropriate for url/properties
|
25
25
|
// - Navigate to that with the correct presentation
|
26
26
|
let viewController = makeViewController(for: url, properties: properties)
|
27
|
-
|
27
|
+
|
28
|
+
// - Navigate to that with the correct presentation
|
29
|
+
if session.activeVisitable?.visitableURL != url {
|
30
|
+
navigate(to: viewController, action: options.action, properties: properties)
|
31
|
+
} else {
|
32
|
+
navigate(to: viewController, action: .replace, properties: properties)
|
33
|
+
}
|
28
34
|
|
29
35
|
// Initiate the visit with Turbo
|
30
36
|
if isVisitable(properties) {
|
@@ -13,7 +13,7 @@ final class ViewController: VisitableViewController, ErrorPresenter {
|
|
13
13
|
}
|
14
14
|
|
15
15
|
private lazy var dismissModalButton = {
|
16
|
-
UIBarButtonItem(
|
16
|
+
UIBarButtonItem(image: UIImage(systemName: "chevron.down"), style: .plain, target: self, action: #selector(dismissModal))
|
17
17
|
}()
|
18
18
|
|
19
19
|
@objc private func dismissModal() {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbo-native-initializer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nixon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|