craft-native 0.0.180 → 0.0.181
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/dist/cli.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/ios/templates/CraftNativeScreen.swift +16 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3303,7 +3303,7 @@ function pinCraftNativeDependency(packagePath, craftVersion) {
|
|
|
3303
3303
|
`);
|
|
3304
3304
|
}
|
|
3305
3305
|
// package.json
|
|
3306
|
-
var version = "0.0.
|
|
3306
|
+
var version = "0.0.181";
|
|
3307
3307
|
|
|
3308
3308
|
// bin/cli.ts
|
|
3309
3309
|
var spawnedFrom = process6.env[CRAFT_CLI_SPAWN_MARKER];
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -1296,6 +1296,22 @@ private class CraftNativeFlowView: UIStackView {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
}
|
|
1298
1298
|
|
|
1299
|
+
// MARK: Touches
|
|
1300
|
+
|
|
1301
|
+
/// A child drawn outside this view's bounds still takes its touches, as an
|
|
1302
|
+
/// overflowing element is clickable on the web, unless the view clips
|
|
1303
|
+
/// (`overflow: hidden`). UIKit only asks a view's children when the point
|
|
1304
|
+
/// is inside the view, so a floating button absolutely positioned out of a
|
|
1305
|
+
/// zero-height parent (a component's wrapper) drew but could not be tapped.
|
|
1306
|
+
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
|
|
1307
|
+
if let hit = super.hitTest(point, with: event) { return hit }
|
|
1308
|
+
guard !clipsToBounds, !isHidden, alpha > 0.01, isUserInteractionEnabled else { return nil }
|
|
1309
|
+
for child in subviews.reversed() where !child.isHidden && child.alpha > 0.01 && child.isUserInteractionEnabled {
|
|
1310
|
+
if let hit = child.hitTest(child.convert(point, from: self), with: event) { return hit }
|
|
1311
|
+
}
|
|
1312
|
+
return nil
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1299
1315
|
// MARK: Children
|
|
1300
1316
|
|
|
1301
1317
|
override var arrangedSubviews: [UIView] { flowChildren }
|