Skip to content

Conversation

@valeriyvan
Copy link
Contributor

macro expansion #hotReloadable:3:21: warning: 'init(_:_:)' is deprecated: Use TextField(_:text:) instead
`- /home/****/swift-cross-ui/Examples/Sources/GreetingGeneratorExample/GreetingGeneratorApp.swift:47:14: note: expanded code originates here
45 |                 }
46 |                 .padding(10)
47 |             }
   +--- macro expansion #hotReloadable ---------------------------------
   | 1 | SwiftCrossUI.HotReloadableView {
   | 2 |                 VStack {
   | 3 |                     TextField("Name", $name)
   |   |                     |- warning: 'init(_:_:)' is deprecated: Use TextField(_:text:) instead
   |   |                     `- note: use 'TextField.init(_:text:)' instead
   | 4 |                     HStack {
   | 5 |                         Button("Generate") {
   +--------------------------------------------------------------------
48 |         }
49 |     }

/home/*****swift-cross-ui/Examples/Sources/GreetingGeneratorExample/GreetingGeneratorApp.swift:18:21: warning: 'init(_:_:)' is deprecated: Use TextField(_:text:) instead
16 |             #hotReloadable {
17 |                 VStack {
18 |                     TextField("Name", $name)
   |                     |- warning: 'init(_:_:)' is deprecated: Use TextField(_:text:) instead
   |                     `- note: use 'TextField.init(_:text:)' instead
19 |                     HStack {
20 |                         Button("Generate") {

Copy link
Owner

@stackotter stackotter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 👍

@stackotter stackotter merged commit f149f08 into stackotter:main May 6, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants