Skip to content

MSiccDev/SFSymbolsImageProvider

 
 

Repository files navigation

SFImageProvider

CI

Provides a Xamarin.Forms ImageSource to load Apple's SF Symbols (https://developer.apple.com/sf-symbols/)

Using

Can be used just like the FontImageSource https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/fonts#display-font-icons. Simply set Glyph to be the SF Symbols name.

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:sfsymbols="clr-namespace:SFSymbolsImageProvider;assembly=SFSymbolsImageProvider"
             x:Class="Test.MainPage">

    <StackLayout>
        <Button
                ImageSource="{sfsymbols:SFSymbolsImage Glyph='exclamationmark.shield', Color=Red, Size=25}"
                Text="Test"
                Padding="10" />
    </StackLayout>

</ContentPage>

About

SF Symbols Image Provider for Xamarin.Forms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%