Skip to content

Commit

Permalink
Merge pull request #6 from TheEightBot/feature/cupertino-text-switch
Browse files Browse the repository at this point in the history
Cupertino Text Switch
  • Loading branch information
michaelstonis authored Oct 19, 2023
2 parents 428657a + 591ebed commit fc6401d
Show file tree
Hide file tree
Showing 3 changed files with 614 additions and 51 deletions.
110 changes: 60 additions & 50 deletions AuroraControls.TestApp/AuroraControls.TestApp.csproj
Original file line number Diff line number Diff line change
@@ -1,53 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
<OutputType>Exe</OutputType>
<RootNamespace>AuroraControls.TestApp</RootNamespace>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<!-- Display name -->
<ApplicationTitle>AuroraControls.TestApp</ApplicationTitle>
<!-- App Identifier -->
<ApplicationId>com.companyname.auroracontrols.testapp</ApplicationId>
<ApplicationIdGuid>0FAE40EE-5A12-47B7-9497-68477FD7D251</ApplicationIdGuid>
<!-- Versions -->
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion>
<MtouchExtraArgs Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">--weak-framework=NewsstandKit.framework/NewsstandKit</MtouchExtraArgs>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net7.0-ios|AnyCPU'">
<CreatePackage>false</CreatePackage>
<CodesignProvision>Automatic</CodesignProvision>
<CodesignKey>iPhone Developer</CodesignKey>
<MtouchDebug>true</MtouchDebug>
<MtouchFloat32>true</MtouchFloat32>
<MtouchEnableSGenConc>true</MtouchEnableSGenConc>
</PropertyGroup>
<ItemGroup>
<!-- App Icon -->
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
<!-- Splash Screen -->
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
<!-- Images -->
<MauiImage Include="Resources\Images\*" />
<MauiFont Include="Resources\Fonts\*" />
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
<EmbeddedResource Include="Resources\SVG\*.svg" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AuroraControlsMaui\AuroraControls.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ReactiveUI.Maui" Version="19.4.1" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.1" />
<PackageReference Include="ReactiveUI.Fody" Version="19.4.1" />
<PackageReference Include="CommunityToolkit.Maui.Markup" Version="3.2.0" />
<PackageReference Include="CommunityToolkit.Maui" Version="5.3.0" />
</ItemGroup>
<PropertyGroup>
<TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
<OutputType>Exe</OutputType>
<RootNamespace>AuroraControls.TestApp</RootNamespace>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<!-- Display name -->
<ApplicationTitle>AuroraControls.TestApp</ApplicationTitle>
<!-- App Identifier -->
<ApplicationId>com.companyname.auroracontrols.testapp</ApplicationId>
<ApplicationIdGuid>0FAE40EE-5A12-47B7-9497-68477FD7D251</ApplicationIdGuid>
<!-- Versions -->
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion>
<MtouchExtraArgs Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">--weak-framework=NewsstandKit.framework/NewsstandKit</MtouchExtraArgs>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net7.0-ios|AnyCPU'">
<CreatePackage>false</CreatePackage>
<CodesignProvision>Automatic</CodesignProvision>
<CodesignKey>iPhone Developer</CodesignKey>
<MtouchDebug>true</MtouchDebug>
<MtouchFloat32>true</MtouchFloat32>
<MtouchEnableSGenConc>true</MtouchEnableSGenConc>
</PropertyGroup>
<ItemGroup>
<!-- App Icon -->
<MauiIcon Include="Resources\AppIcon\appicon.svg"
ForegroundFile="Resources\AppIcon\appiconfg.svg"
Color="#512BD4" />
<!-- Splash Screen -->
<MauiSplashScreen Include="Resources\Splash\splash.svg"
Color="#512BD4"
BaseSize="128,128" />
<!-- Images -->
<MauiImage Include="Resources\Images\*" />
<MauiFont Include="Resources\Fonts\*" />
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
<MauiAsset Include="Resources\Raw\**"
LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
<EmbeddedResource Include="Resources\SVG\*.svg" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AuroraControlsMaui\AuroraControls.Maui.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ReactiveUI.Maui"
Version="19.4.1" />
<PackageReference Include="CommunityToolkit.Mvvm"
Version="8.2.1" />
<PackageReference Include="ReactiveUI.Fody"
Version="19.4.1" />
<PackageReference Include="CommunityToolkit.Maui.Markup"
Version="3.2.0" />
<PackageReference Include="CommunityToolkit.Maui"
Version="5.3.0" />
</ItemGroup>
</Project>
11 changes: 10 additions & 1 deletion AuroraControls.TestApp/MainPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ public MainPage()
VerticalOptions = LayoutOptions.Center,
Text = "Welcome to .NET MAUI!",
},
new CupertinoTextToggleSwitch()
{
EnabledText = "Enabled",
DisabledText = "Disabled",
TrackDisabledColor = Color.FromRgba("#ef361a"),
TrackEnabledColor = Color.FromRgba("#4694f2"),
DisabledFontColor = Colors.White,
EnabledFontColor = Colors.White,
},
new Button
{
BackgroundColor = Colors.Fuchsia,
Expand Down Expand Up @@ -385,4 +394,4 @@ public MainPage()
})
.Subscribe();
}
}
}
Loading

0 comments on commit fc6401d

Please sign in to comment.