Skip to content
This repository has been archived by the owner on Jun 3, 2022. It is now read-only.

RMXColorUpdateBlock doesn't autocomplete nicely in Xcode when initializing an RMXColorVariable #66

Open
jverkoey opened this issue Nov 16, 2016 · 0 comments
Assignees

Comments

@jverkoey
Copy link

Consider the following code snippet I was just writing:

RMXColorVariable(key: "squareColor", defaultValue: .red, update: <#T##RMXColorUpdateBlock##RMXColorUpdateBlock##(RMXColorVariable, UIColor) -> Void#>)

Hitting enter on the block to get Xcode to fill it out will usually create the block syntax for you. I'm guessing that because the block type is a typealias it's failing to generate the syntax and you end up just getting a string readout of the typealias:

RMXColorVariable.init(key: "squareColor", defaultValue: .red, update: RMXColorUpdateBlock)

I think if you remove the typealias then Xcode will be able to properly translate the block into code.

@chuga chuga self-assigned this Nov 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants