This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix iOS SwipeView background behavior (#14582)
- Loading branch information
1 parent
8af69e3
commit be09702
Showing
4 changed files
with
78 additions
and
11 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue14444.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<local:TestContentPage | ||
xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:d="http://xamarin.com/schemas/2014/forms/design" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
Title="Test 14444" xmlns:local="using:Xamarin.Forms.Controls" | ||
x:Class="Xamarin.Forms.Controls.Issues.Issue14444" | ||
BackgroundColor="LightGray"> | ||
<StackLayout> | ||
<Label | ||
Padding="12" | ||
BackgroundColor="Black" | ||
TextColor="White" | ||
Text="If the SwipeView background is transparent, the test has passed."/> | ||
<StackLayout | ||
Padding="12"> | ||
<SwipeView | ||
BackgroundColor="Transparent"> | ||
<SwipeView.LeftItems> | ||
<SwipeItemView WidthRequest="50"> | ||
<BoxView | ||
HeightRequest="50" | ||
HorizontalOptions="FillAndExpand" | ||
BackgroundColor="Red"/> | ||
</SwipeItemView> | ||
</SwipeView.LeftItems> | ||
<BoxView | ||
HeightRequest="50" | ||
HorizontalOptions="FillAndExpand" | ||
BackgroundColor="Gray" | ||
CornerRadius="16"/> | ||
</SwipeView> | ||
</StackLayout> | ||
</StackLayout> | ||
</local:TestContentPage> |
31 changes: 31 additions & 0 deletions
31
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue14444.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
using Xamarin.Forms.CustomAttributes; | ||
using System.Threading.Tasks; | ||
|
||
#if UITEST | ||
using Xamarin.UITest; | ||
using NUnit.Framework; | ||
using Xamarin.Forms.Core.UITests; | ||
#endif | ||
|
||
namespace Xamarin.Forms.Controls.Issues | ||
{ | ||
[Issue(IssueTracker.Github, 14444, | ||
"[Bug] SwipeView backgrownd color is set to white on iOS", | ||
PlatformAffected.iOS)] | ||
public partial class Issue14444 : TestContentPage | ||
{ | ||
public Issue14444() | ||
{ | ||
#if APP | ||
InitializeComponent(); | ||
#endif | ||
} | ||
|
||
protected override void Init() | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters