-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upup 692 memory leak #3
Conversation
# Conflicts: # ExampleApp/ExampleApp/ContentView.swift # Sources/FormView/FormView.swift
|
||
override func viewWillAppear(_ animated: Bool) { | ||
super.viewWillAppear(animated) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Уберем пустую строку
import UIKit | ||
|
||
class HostingController<T: View>: UIHostingController<T> { | ||
var isNavigationBarHidden: Bool { false } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Уберем пропертю
@@ -7,7 +7,7 @@ | |||
|
|||
import Foundation | |||
|
|||
public struct FormValidator { | |||
public class FormValidator: ObservableObject { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Думаю тут структуру можно оставить, давай чекнем что работает.
Если оставим классом, то так как formValidator прокидывается в content, то есть вероятность что его могут захватить
Sources/FormView/FormView.swift
Outdated
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Уберем пустую строку
No description provided.