GenerallyHelpfulSoftware / SVGgh

A framework for using SVG artwork in iOS Apps. Includes a UIView and a button class, printing and PDF export.
MIT License
141 stars 37 forks source link

Fix build with Xcode 11 beta3 due to ambiguous reference to property:… #39

Closed simonkim closed 5 years ago

simonkim commented 5 years ago

… NSDictionary *attributes Xcode 11 beta complier complains that there are many 'attributes' properties declared with different return types.

/.../SVGgh/SVGgh/SVG/SVGAttributedObject.m:58:54: error: multiple methods named 'attributes' found with mismatched result, parameter type or attributes
        NSDictionary* oldAttributes = (NSDictionary*)[prototype attributes];

To fix this,

  1. Defined GHAttributedObjectProtocol
  2. Take id instead of 'id' as input parameter type from +overideObjecctsForPrototype:withDictionary: of GHAttributedObject