mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Switch tests for ios.
This commit is contained in:
@ -42,6 +42,14 @@ export class Switch extends SwitchBase {
|
|||||||
return this._ios;
|
return this._ios;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get _nativeView(): UISwitch {
|
||||||
|
return this._ios;
|
||||||
|
}
|
||||||
|
|
||||||
|
get nativeView(): UISwitch {
|
||||||
|
return this._ios;
|
||||||
|
}
|
||||||
|
|
||||||
public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void {
|
public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void {
|
||||||
// It can't be anything different from 51x31
|
// It can't be anything different from 51x31
|
||||||
let nativeSize = this._nativeView.sizeThatFits(CGSizeMake(0, 0));
|
let nativeSize = this._nativeView.sizeThatFits(CGSizeMake(0, 0));
|
||||||
|
Reference in New Issue
Block a user