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
import Combine | |
{% if argument.imports %}{{ argument.imports }}{% endif %} | |
{% for type in types.all where type|annotated:"AutoCombineTestUtil" %} | |
extension {{ type.name }} { | |
struct TestUtil { | |
{% for property in type.storedVariables where property.readAccess != "private" %} | |
let {{ property.name }}: {% if property.type|annotated:"AutoCombineTestUtil" %}{% if property.isOptional %}{{ property.typeName | replace:"?","" }}.TestUtil?{% else %}{{ property.typeName }}.TestUtil {% endif %} {% elif property.typeName|contains:"AnySubscriber" %}{{ property.typeName|replace:"AnySubscriber","PassthroughSubject"}}{% elif property.typeName|contains:"AnyPublisher" %}CurrentValueSubject<{{ property.typeName.generic.typeParameters.first.typeName }}?, Never>{% else %}{{ property.typeName }}{% endif %} | |
{% endfor %} |
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
import UIKit | |
import Foundation | |
infix operator ~ : RangeFormationPrecedence | |
public enum AnchorOption: Hashable { | |
case priority(UILayoutPriority) | |
case multiplier(CGFloat) | |
case constant(CGFloat) | |