Questions tagged [swift-mirror]

2 questions
0
votes
0 answers

Get marked variable name as default value for propertyWrapper

Lets say I have a property Wrapper to fetch Feature Flag from a service and assign to a Boolean if it is enabled of not @propertyWrapper final class FeatureToggle { var clientContainer: ConfigurableFeatureFlagClient private let key:…
Cayoda
  • 189
  • 6
0
votes
1 answer

Swift function overloading - invoking func with specific parameter (in place of Any parameter) on passing Any object

I have 3 structs: struct Address: Codable { var addressLine1: String } struct Person: Codable { var name: String } struct Order: Codable { var person: Person? var address: Address? } In my ViewController class I am using Mirror to…
Devarshi
  • 16,440
  • 13
  • 72
  • 125