using Xamarin.Forms.CustomAttributes; using Xamarin.Forms.Internals; using Xamarin.Forms.PlatformConfiguration; using Xamarin.Forms.PlatformConfiguration.iOSSpecific; namespace Xamarin.Forms.Controls.Issues { [Preserve(AllMembers = true)] [Issue(IssueTracker.Github, 1707, "[Enhancement] Drop shadow support for iOS", PlatformAffected.iOS)] public class Issue1707 : ContentPage { public Issue1707() { Title = "Shadow Test Page"; Padding = 10; var layout = new StackLayout(); var box = new BoxView(); box.Color = Color.Aqua; box.On().SetIsShadowEnabled(true); box.On().SetShadowOffset(new Size(10, 10)); box.On().SetShadowColor(Color.Purple); box.WidthRequest = box.HeightRequest = 100; layout.Children.Add(box); Content = layout; } } }