craft-native 0.0.299 → 0.0.301
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 +4 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2945,7 +2945,7 @@ function pinCraftNativeDependency(packagePath, craftVersion) {
|
|
|
2945
2945
|
`);
|
|
2946
2946
|
}
|
|
2947
2947
|
// package.json
|
|
2948
|
-
var version = "0.0.
|
|
2948
|
+
var version = "0.0.301";
|
|
2949
2949
|
|
|
2950
2950
|
// bin/cli.ts
|
|
2951
2951
|
var spawnedFrom = process6.env[CRAFT_CLI_SPAWN_MARKER];
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -8077,15 +8077,17 @@ final class CraftNativeScreenController: UIViewController, UIScrollViewDelegate,
|
|
|
8077
8077
|
break
|
|
8078
8078
|
}
|
|
8079
8079
|
let field = result as! UITextField
|
|
8080
|
-
|
|
8081
|
-
if let placeholder = field.placeholder,
|
|
8080
|
+
if let placeholder = props["placeholder"] as? String,
|
|
8082
8081
|
let placeholderColor = color(props["placeholderTextColor"]) {
|
|
8083
8082
|
field.attributedPlaceholder = NSAttributedString(
|
|
8084
8083
|
string: placeholder,
|
|
8085
8084
|
attributes: [.foregroundColor: placeholderColor]
|
|
8086
8085
|
)
|
|
8087
8086
|
} else {
|
|
8087
|
+
// UIKit shares these properties: resetting the attributed
|
|
8088
|
+
// value after the plain one also erases the visible hint.
|
|
8088
8089
|
field.attributedPlaceholder = nil
|
|
8090
|
+
field.placeholder = props["placeholder"] as? String
|
|
8089
8091
|
}
|
|
8090
8092
|
field.tintColor = color(props["selectionColor"])
|
|
8091
8093
|
let fieldId = ObjectIdentifier(field)
|