@craft-native/ios 0.0.193 → 0.0.194
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.
package/package.json
CHANGED
|
@@ -4406,6 +4406,11 @@ final class CraftNativeScreenController: UIViewController, UIScrollViewDelegate,
|
|
|
4406
4406
|
navigationController?.setNavigationBarHidden(hidden, animated: view.window != nil)
|
|
4407
4407
|
}
|
|
4408
4408
|
}
|
|
4409
|
+
if options.keys.contains("leftButtons") {
|
|
4410
|
+
let buttons = (options["leftButtons"] as? [[String: Any]]) ?? []
|
|
4411
|
+
navigationItem.leftItemsSupplementBackButton = true
|
|
4412
|
+
navigationItem.leftBarButtonItems = buttons.compactMap(navigationButton)
|
|
4413
|
+
}
|
|
4409
4414
|
if options.keys.contains("rightButtons") {
|
|
4410
4415
|
let buttons = (options["rightButtons"] as? [[String: Any]]) ?? []
|
|
4411
4416
|
navigationItem.rightBarButtonItems = buttons.compactMap(navigationButton).reversed()
|
|
@@ -4480,6 +4485,7 @@ final class CraftNativeScreenController: UIViewController, UIScrollViewDelegate,
|
|
|
4480
4485
|
} else {
|
|
4481
4486
|
item.accessibilityLabel = id
|
|
4482
4487
|
}
|
|
4488
|
+
if spec["variant"] as? String == "neutral" { item.tintColor = .label }
|
|
4483
4489
|
if let tint = (spec["color"] as? String).flatMap({ UIColor(hex: $0) }) { item.tintColor = tint }
|
|
4484
4490
|
// `image`: a picture (an https URL, the account's own photo), drawn
|
|
4485
4491
|
// round as iOS draws an account button. The symbol or title shows
|