mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Use Swift 5.7 if-let style
This commit is contained in:
@@ -46,7 +46,7 @@ struct SearchTextField: View {
|
||||
.padding(.trailing, 15)
|
||||
#endif
|
||||
|
||||
if let favoriteItem = favoriteItem {
|
||||
if let favoriteItem {
|
||||
#if os(iOS)
|
||||
FavoriteButton(item: favoriteItem)
|
||||
.id(favoriteItem.id)
|
||||
|
@@ -117,7 +117,7 @@ struct SearchView: View {
|
||||
#endif
|
||||
}
|
||||
.onAppear {
|
||||
if let query = query {
|
||||
if let query {
|
||||
state.queryText = query.query
|
||||
state.resetQuery(query)
|
||||
updateFavoriteItem()
|
||||
|
Reference in New Issue
Block a user