fromSwitchView method
Implementation
SwitchViewController fromSwitchView(SwitchView view) {
super.fromView(view);
size = view.size;
activeThumbColor = view.activeThumbColor;
inactiveThumbColor = view.inactiveThumbColor;
activeThumbStrokeColor = view.activeThumbStrokeColor;
inactiveThumbStrokeColor = view.inactiveThumbStrokeColor;
activeTrackColor = view.activeTrackColor;
inactiveTrackColor = view.inactiveTrackColor;
activeTrackStrokeColor = view.activeTrackStrokeColor;
inactiveTrackStrokeColor = view.inactiveTrackStrokeColor;
activeThumbIcon = view.activeThumbIcon;
inactiveThumbIcon = view.inactiveThumbIcon;
activeThumbIconTint = view.activeThumbIconTint;
inactiveThumbIconTint = view.inactiveThumbIconTint;
activeThumbSpacing = view.activeThumbSpacing;
inactiveThumbSpacing = view.inactiveThumbSpacing;
activeThumbStrokeSize = view.activeThumbStrokeSize;
inactiveThumbStrokeSize = view.inactiveThumbStrokeSize;
thumbIconSpacing = view.thumbIconSpacing;
thumbWalkingTime = view.thumbWalkingTime;
trackBorderRadius = view.trackBorderRadius;
trackStrokeSize = view.trackStrokeSize;
trackRatio = view.trackRatio;
return this;
}