Skip to content

Conversation

@valeriyvan
Copy link
Contributor

macro expansion #hotReloadable:5:25: warning: 'init(_:_:)' is deprecated: Use TextField(_:text:) instead
`- /home/*****/swift-cross-ui/Examples/Sources/WindowingExample/WindowingApp.swift:97:14: note: expanded code originates here
 95 |                 }
 96 |                 .padding(20)
 97 |             }
    +--- macro expansion #hotReloadable --------------------------------
    | 3 |                     HStack {
    | 4 |                         Text("Window title:")
    | 5 |                         TextField("My window", $title)
    |   |                         |- warning: 'init(_:_:)' is deprecated: Use TextField(_:text:) instead
    |   |                         `- note: use 'TextField.init(_:text:)' instead
    | 6 |                     }
    | 7 | 
    +-------------------------------------------------------------------
 98 |         }
 99 |         .defaultSize(width: 500, height: 500)

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 b19b759 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