-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add object support in ToggleGen #39
Add object support in ToggleGen #39
Conversation
get { manager.value(for: ToggleVariables.numericToggle2).numberValue! } | ||
set { manager.set(.number(newValue), for: ToggleVariables.numericToggle2) } | ||
} | ||
|
||
public var userDefinedStringToggle: String { | ||
public var stringToggle2: String { |
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.
Script automatically changed property names. Not sure why that happened, I guess it was outdated file? @albertodebortoli
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.
I noticed that too when running it locally yesterday. Yes, I think it was outdated.
import Foundation | ||
|
||
public struct ToggleVariables { | ||
public enum ToggleVariables { |
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.
yep, definitely outdated
@@ -20,7 +20,7 @@ public struct Object { | |||
|
|||
/// Object description represented as plain json string. | |||
/// Returns nil if object cant be represented as json string. | |||
var description: String? { | |||
public var description: String? { |
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.
I remember efforts to keep this non-public but I guess it's ok (you've used it in the demo app).
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.
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.
Nice catch @albertodebortoli, updated |
I have finalised
object
support in Toggles. Now it's time to addobject
support inToggleGen
.Object
andObjectSupportedType
inToggleGen
package.ToggleGen
script to generate new object properties.Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-02-19.at.11.11.38.mp4