Skip to content

Commit

Permalink
hacky solution to the exiting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
leminlimez committed Dec 21, 2023
1 parent b8c7339 commit 97c1134
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/views/widgetset/EditWidgetSetView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import SwiftUI
struct EditWidgetSetView: View {
@StateObject var widgetManager: WidgetManager
@State var widgetSet: WidgetSetStruct
@State var currentWidgetSet: WidgetSetStruct? = nil

@State var showingAddView: Bool = false

Expand Down Expand Up @@ -286,6 +287,10 @@ struct EditWidgetSetView: View {
}
.navigationTitle("Edit Widget")
.onAppear {
if currentWidgetSet == widgetSet {
return
}
currentWidgetSet = widgetSet
nameInput = widgetSet.title

anchorSelection = widgetSet.anchor
Expand Down

0 comments on commit 97c1134

Please sign in to comment.