Skip to content

Commit 5a57d6e

Browse files
committed
fix #175 toast position in readonly
1 parent 5ccd172 commit 5a57d6e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

nuspec/Acr.UserDialogs.nuspec

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
33
<metadata>
44
<id>Acr.UserDialogs</id>
5-
<version>5.2.0</version>
5+
<version>5.2.1</version>
66
<title>ACR User Dialogs Plugin for Xamarin and Windows</title>
77
<summary>Allows for messagebox style dialogs to be called from your shared/PCL/MVVM code</summary>
88
<description>
@@ -65,6 +65,8 @@ Supported Platforms
6565
</group>-->
6666
</dependencies>
6767
<releaseNotes>
68+
5.2.1
69+
[fix] toastposition get/set
6870
5.2
6971
[feature] cancellable standard dialogs. use cancellationtokens or disposable pattern from sync versions
7072
[feature] date/time dialogs

src/Acr.UserDialogs.Interface/ToastConfig.cs

+7-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class ToastConfig
5656
/// <summary>
5757
/// Only applies to iOS at the moment
5858
/// </summary>
59-
public ToastPosition Position { get; }
59+
public ToastPosition Position { get; set; }
6060
public Color BackgroundColor { get; set; }
6161
public IBitmap Icon { get; set; }
6262
public string Title { get; set; }
@@ -123,6 +123,12 @@ public ToastConfig SetDuration(TimeSpan duration)
123123
}
124124

125125

126+
public ToastConfig SetPosition(ToastPosition position)
127+
{
128+
this.Position = position;
129+
return this;
130+
}
131+
126132
public ToastConfig SetIcon(IBitmap bitmap)
127133
{
128134
this.Icon = bitmap;

0 commit comments

Comments
 (0)