What type of variable is e.g. .bottom? I want to declare such a variable or want to send passing data with this variable.
Question posted in Xcode
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
2
Answers
It’s value of enum.
When you have that enum like in example above then you can use that:
When the type is known then you can use the syntax with
.
.It could be any type with a member called bottom. It has been omitted because the compiler can parse "implicit member expressions". It means that whenever the compiler can infer the type from the context, you do not need to write it. Back to your problem: you could do a "Command"-Click on the expression and let XCode tell you more about the context.