public UIView GetContent() { var al = new AppendingLabel(36f); var bio = Profile.Bio != null ? $"\"{Profile.Bio}\"" : "This user doesn't appear to have a bio."; var text = String.Join(Environment.NewLine, $"{Profile.Name} ({Profile.Status})", $"{Profile.City}, {Profile.Country}", $"Meetup Age: {Math.Round((DateTime.Now - Profile.JoinedOn).TotalDays / 365.0), 2} years", $"RSVPs: {Profile.YesRsvps}/{Profile.TotalRsvps} ({(double)Profile.YesRsvps/Profile.TotalRsvps:P2})", "", bio ); al.SetTextAnimated(text, pace: 0.02); return(al); }
/// <summary> /// For use with Continuous only /// </summary> public DisplayMeetupProfileViewController() { int i = 0; //var profiles = Task.Run(async () => await StaticMeetupService.GetRsvps()).Result; //Profile = profiles.Skip(i++).First().ItemData; View.AddGestureRecognizer(new UITapGestureRecognizer(async gr => { // Profile = profiles.Skip(i++).First().ItemData; // DisplayProfile(); var al = new AppendingLabel(36f); Dialog.SetContent(al); foreach (var z in Enumerable.Range(0, 3000)) { await al.SetTextAnimated(String.Join(" ", Enumerable.Range(0, z + 1).Select(_ => "po")), 0.2 - (z * 0.0015)); await Task.Delay(TimeSpan.FromSeconds(.5 - (z * 0.0015))); } })); }
public EBTextDialogViewController(float fontSize) { Label = new AppendingLabel(36); }