ruby_native 0.10.10 → 0.10.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1bb5b7670bd2d4d61029b914d26318ed49b9238dd285830a96804dc249be2402
4
- data.tar.gz: 13f7f057b4be15c33e5c1c5fdade61102dd153a7a1aaba3c789d67bd730f950b
3
+ metadata.gz: a0c3d95e45afd32971cc8dc042ae37411aae04748b7b49cde8e9b94c9bc60a15
4
+ data.tar.gz: 047153c52db88fca1315f83ee8447509cc5ff28cb11abd802d9ad368a5864dff
5
5
  SHA512:
6
- metadata.gz: ae5949c2f376250485552b39960c5ba5b02d2618a0d15572ca53ac551ce1fc17c8bd418eadd138a9d51dfd3746737193f4f2916befc44bb697b4e32ea362ade3
7
- data.tar.gz: 7248a218a8a196571628e8233bb687ac73ba51281eb23d24ffbd31b21be94e82ecf7e2e5ba410af36bfc0b43aab8c8b1b7d4b2ef1ae370c3512bb33d5f230909
6
+ metadata.gz: 1fe808f45eeff4c420ce915bb53b1267f39e5139c0b9626e0e0d1ac2829e169136b8248f1665de5bfb88251617949c570b293475324b4b254582e535bef51b79
7
+ data.tar.gz: 9ae961899223792d3936309e098dbd3caa3e4bc6f09b0877fa88029973a5d582807cab250bedc10577b8790f8b7e2a80c23e2601ea7207c76e2c2a68704a1c39
@@ -56,6 +56,21 @@ appearance:
56
56
  # # Omit to let the system decide.
57
57
  # status_bar: light
58
58
 
59
+ # Show a launch splash while the first screen loads. It holds your launch icon
60
+ # and background_color in frame, with a spinner, until the web content paints.
61
+ # Off by default; set enabled: true to turn it on.
62
+ # https://rubynative.com/docs/appearance#splash-screen
63
+ # splash:
64
+ # enabled: true
65
+ #
66
+ # # Spinner color. Accepts a hex string, or { light:, dark: } for dark mode.
67
+ # # Defaults to a contrast-aware pick from your background_color.
68
+ # spinner_color: "#007AFF"
69
+ #
70
+ # # Status bar content over the splash. Options: light (white) or dark.
71
+ # # Defaults to a contrast-aware pick from your background_color.
72
+ # status_bar: dark
73
+
59
74
  # Configure the native tab bar on the bottom of the screen.
60
75
  # https://rubynative.com/docs/tabs
61
76
  tabs:
@@ -126,6 +126,19 @@ module RubyNative
126
126
  end
127
127
  end
128
128
 
129
+ # Adds a segment to the nav bar. On iOS the segments render as a centered
130
+ # segmented control (the same control the App Store uses for Apps/Games).
131
+ # Mark the current page's segment `selected: true`. Tapping a segment
132
+ # navigates to its `href` (or clicks the `click` selector), replacing
133
+ # history so the back button doesn't walk back through segment switches.
134
+ def segment(title, href: nil, click: nil, selected: false)
135
+ data = { native_segment: "", native_title: title }
136
+ data[:native_href] = href if href
137
+ data[:native_click] = click if click
138
+ data[:native_selected] = "" if selected
139
+ @items << @context.tag.div(data: data)
140
+ end
141
+
129
142
  # Adds a native share button to the nav bar. Tapping it opens the
130
143
  # platform share sheet for `url:` (defaults to the current page on the
131
144
  # web side) so it works even where embedded web views don't support
@@ -1,3 +1,3 @@
1
1
  module RubyNative
2
- VERSION = "0.10.10"
2
+ VERSION = "0.10.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_native
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.10
4
+ version: 0.10.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Masilotti