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));