blob: 6301f00cd10f27e45c0a6677fda261fab8270c01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
using System.Linq;
using UIKit;
using Xamarin.Forms;
using Xamarin.Forms.Controls.Issues;
using Xamarin.Forms.Platform.iOS;
[assembly: ExportEffect(typeof(Xamarin.Forms.ControlGallery.iOS._58406EffectRenderer), Bugzilla58406.EffectName)]
namespace Xamarin.Forms.ControlGallery.iOS
{
public class _58406EffectRenderer : PlatformEffect
{
protected override void OnAttached()
{
var tv = Control as UILabel;
if (tv == null)
{
return;
}
tv.Text = new string(tv.Text.ToCharArray().Reverse().ToArray());
}
protected override void OnDetached()
{
}
}
}
|