Skip to content

Instantly share code, notes, and snippets.

View vhugogarcia's full-sized avatar
🏠
Working from home

Víctor Hugo García Hernández vhugogarcia

🏠
Working from home
View GitHub Profile
@vhugogarcia
vhugogarcia / ImageTinted.cs
Created June 16, 2022 12:27
How to tint an image in .NET MAUI for iOS and Android using Handlers
using System.Diagnostics;
using Microsoft.Maui.Platform;
namespace Demo.Handlers;
public partial class ImageTinted : Image
{
public ImageTinted()
{
ModifyImage();
@vhugogarcia
vhugogarcia / DemoMauiApp.csproj
Last active June 29, 2022 11:06
.NET MAUI Setting code signing keys for iOS physical devices
<!-- For non sim (emulators): $(RuntimeIdentifier.StartsWith('iossimulator-')) -->
<!-- For physical devices: $(RuntimeIdentifier.StartsWith('ios-')) -->
<PropertyGroup Condition="$(TargetFramework.Contains('-ios')) and '$(Configuration)' == 'Debug' and $(RuntimeIdentifier.StartsWith('ios-'))">
<RuntimeIdentifier>ios-arm64</RuntimeIdentifier>
<!-- Remove the following line if entitlements are not required -->
<CodesignEntitlement>Entitlements.plist</CodesignEntitlement>
<!-- Set the Apple Certificate Key name -->
<CodesignKey>Apple Development Key(ABCDEF)</CodesignKey>
<!-- Set the Apple Provisioning Profile name -->
<CodesignProvision>App Development Profile</CodesignProvision>
@vhugogarcia
vhugogarcia / Fonts.Material.Design.3.xaml
Created May 25, 2022 23:05
MAUI Font resources for Material Design 3
<?xml version="1.0" encoding="UTF-8" ?>
<?xaml-comp compile="true" ?>
<ResourceDictionary
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
<x:String x:Key="FontRegular">NunitoRegular</x:String>
<x:String x:Key="FontMedium">NunitoMedium</x:String>
<x:String x:Key="FontMediumItalic">NunitoMediumItalic</x:String>
<x:String x:Key="FontBold">NunitoBold</x:String>
@vhugogarcia
vhugogarcia / Ektron CMS .gitignore
Last active April 27, 2020 18:47
Ektron CMS .gitignore
#################
## Ektron Project
## Contributors: James Stout @egandalf and Victor H. Garcia @ivictorhugo
#################
## Ignore Ektron site specific files, build results, and
## files generated by popular Ektron assets.
# Ektron-specific folders and files
[Ww]orkarea/