mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Apply getter check to determine if API is exposed as property or as method for iOS backward compatibility
This commit is contained in:
@@ -2,6 +2,8 @@ import spanCommon = require("./span-common");
|
||||
import enums = require("ui/enums");
|
||||
import formattedString = require("text/formatted-string");
|
||||
|
||||
import * as utils from "utils/utils";
|
||||
|
||||
global.moduleMerge(spanCommon, exports);
|
||||
|
||||
export class Span extends spanCommon.Span {
|
||||
@@ -16,7 +18,7 @@ export class Span extends spanCommon.Span {
|
||||
if (realFontAttributes || realFontFamily || realFontSize) {
|
||||
var font;
|
||||
if (!realFontSize) {
|
||||
realFontSize = UIFont.systemFontSize();
|
||||
realFontSize = utils.ios.getter(UIFont, UIFont.systemFontSize);
|
||||
}
|
||||
if (realFontFamily) {
|
||||
font = UIFont.fontWithNameSize(realFontFamily, realFontSize);
|
||||
|
||||
Reference in New Issue
Block a user