From f4535b03be646b0d605729f4ea40095d7463deab Mon Sep 17 00:00:00 2001 From: Nedyalko Nikolov Date: Fri, 30 Dec 2016 11:41:30 +0200 Subject: [PATCH] Switch tests for ios. --- tns-core-modules/ui/switch/switch.ios.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tns-core-modules/ui/switch/switch.ios.ts b/tns-core-modules/ui/switch/switch.ios.ts index 6c15d7fea..e86353635 100644 --- a/tns-core-modules/ui/switch/switch.ios.ts +++ b/tns-core-modules/ui/switch/switch.ios.ts @@ -42,6 +42,14 @@ export class Switch extends SwitchBase { return this._ios; } + get _nativeView(): UISwitch { + return this._ios; + } + + get nativeView(): UISwitch { + return this._ios; + } + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void { // It can't be anything different from 51x31 let nativeSize = this._nativeView.sizeThatFits(CGSizeMake(0, 0));