protected override async void OnAppearing() { base.OnAppearing(); int.TryParse(CoffeeId, out var result); BindingContext = await CoffeeService.GetCoffee(result); }
async Task Refresh() { IsBusy = true; await Task.Delay(2000); Coffee.Clear(); var coffees = await CoffeeService.GetCoffee(); Coffee.AddRange(coffees); IsBusy = false; }