ivoleko / ILTranslucentView

Subclass of UIView that enables native iOS 7 blur effect.
MIT License
434 stars 50 forks source link

Swift version doesn't compile in Xcode 6 final #10

Closed altruic closed 9 years ago

altruic commented 10 years ago

The Swift version of this class doesn't compile in the final Xcode 6 release. I adjusted the code so that Xcode stopped complaining about errors and warnings in the IDE, but the compile still failed with:

Referring to an argument in another function!
  store float %1, float* %.coerced, !dbg !390
LLVM ERROR: Broken function found, compilation aborted!

This error went away when I commented out bounds and backgroundColor, but I didn't find anything obviously wrong with those methods. Changing the type of backgroundColor to UIColor? (like the base class) didn't resolve the compiler error, either.

Any ideas on what the problem might be? I'm pretty new to Swift errors. Thanks.

ivoleko commented 9 years ago

This is fixed now.