This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// swiftlint:disable all | |
// Generated using SwiftGen — https://github.com/SwiftGen/SwiftGen | |
{% if catalogs %} | |
{% set enumName %}{{param.enumName|default:"AssetNames"}}{% endset %} | |
{% set forceNamespaces %}{{param.forceProvidesNamespaces|default:"false"}}{% endset %} | |
{% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %} | |
{% macro enumStringsBlock assets %} | |
{% for asset in assets %} | |
{% if asset.type != "group" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct PlaceHolderTextEditor: View { | |
let placeholder: String | |
@Binding var text: String | |
var body: some View { | |
ZStack(alignment: Alignment(horizontal: .leading, vertical: .top)) { | |
if text.isEmpty { | |
Text(placeholder) | |
.foregroundColor(Color(.label)) | |
.padding(.top, 10) | |
} |
OlderNewer