diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2017-01-08 16:35:51 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2017-01-09 01:38:20 -0800 |
commit | 1ae84db9789e638aaec0cd13c6921eb8a3503641 (patch) | |
tree | af14653c65033f7fb5ed863ba87bb01e0510ba07 /platform/macos/docs | |
parent | 2a9f883239acef0dd8ed34b5dc1bf29c86858a25 (diff) | |
download | qtlocation-mapboxgl-1ae84db9789e638aaec0cd13c6921eb8a3503641.tar.gz |
[ios, macos] Clarified CGVector, NS/UIEdgeInsets accessors
Diffstat (limited to 'platform/macos/docs')
-rw-r--r-- | platform/macos/docs/guides/For Style Authors.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/platform/macos/docs/guides/For Style Authors.md b/platform/macos/docs/guides/For Style Authors.md index 5f11c17597..a4fd7ee9c4 100644 --- a/platform/macos/docs/guides/For Style Authors.md +++ b/platform/macos/docs/guides/For Style Authors.md @@ -247,7 +247,8 @@ you want the attribute to be set to. In contrast to the JSON type that the style specification defines for each layout or paint property, the style value object often contains a more specific Foundation or Cocoa type. General rules for attribute types are listed below. -Pay close attention to the SDK documentation for the attribute you want to set. +Pay close attention to the SDK documentation for the attribute you want to get +or set. In style JSON | In Objective-C | In Swift --------------|-----------------------|--------- @@ -258,8 +259,8 @@ Boolean | `NSNumber.boolValue` | `NSNumber.boolValue` Number | `NSNumber.floatValue` | `NSNumber.floatValue` Array (`-dasharray`) | `NSArray<NSNumber>` | `[NSNumber]` Array (`-font`) | `NSArray<NSString>` | `[String]` -Array (`-offset`, `-translate`) | `CGVector` | `CGVector` -Array (`-padding`) | `NSEdgeInsets` | `NSEdgeInsets` +Array (`-offset`, `-translate`) | `NSValue` containing `CGVector` | `NSValue` containing `CGVector` +Array (`-padding`) | `NSValue.edgeInsetsValue` | `NSValue.edgeInsetsValue` ## Filtering sources |