bustoutsolutions / siesta

The civilized way to write REST API clients for iOS / macOS
https://bustoutsolutions.github.io/siesta/
MIT License
2.19k stars 159 forks source link

Xcode bug renders ResourceStatusOverlay & ResourceImageView unusable in storyboards #4

Open pcantrell opened 9 years ago

pcantrell commented 9 years ago

Swift framework classes with an @objc(Name) annotation are not usable under either the Swift name or the Obj-C name within a storyboard.

The current workaround is to define a dummy subclass in the project using Siesta:

class ResourceStatusOverlay: Siesta.ResourceStatusOverlay { }

The storyboard can now see that class.

pcantrell commented 8 years ago

As of Siesta 1.0b8 + Xcode 7.3.1, the simple subclass workaround above no longer works.

It is possible to create a project-local subclass in Objective-C that works. However, Siesta should just drop the BOS prefix for the Obj-C version of ResourceStatusOverlay, which will prevent Siesta from exposing this Apple bug in the first place. Targeting 1.0b9 for this.