tbaggett / xfgloss

New styling properties for standard Xamarin.Forms controls
Other
160 stars 25 forks source link

XFGloss Gradient not working in Release mode for iOS with "Link SDK Assemblies only" #8

Closed gtbuchanan closed 7 years ago

gtbuchanan commented 7 years ago

I have tried every manner of configuration I could think of to get this working. I'm only using a Gradient with ContentPageGloss.BackgroundGradient in XAML, but it refuses to render in Release mode with iOS "Linker Behavior" set to "Link SDK Assemblies only". I have tried all of the following, to no avail:

  1. Standard XFGloss.iOS.Library.Init() call in AppDelegate
  2. Reference Gradient and ContentPageGloss classes in preservation class (Similar to how Akavache suggests here).
  3. mtouch arguments --linkskip=XFGloss --linkskip=XFGloss.iOS

Any ideas?

tbaggett commented 7 years ago

Hi Taylor,

I will try to reproduce the issue and get back to you.

tbaggett commented 7 years ago

I have reproduced the issue. Investigating it now.

gtbuchanan commented 7 years ago

I was putting together a repro project, but you responded faster than I was able to. Thanks for the great support!

tbaggett commented 7 years ago

You're welcome! I'm currently between jobs and have lots of free time on my hands unfortunately, haha.

I have built a new version that fixed the issue in my testing. It is available through my CI deployment to myGet - http://myget.org/feed/ansuria-ci/package/nuget/Ansuria.XFGloss.

Can you add MyGet to your NuGet sources and try the v1.0.4.37 package? In Xamarin Studio on the Mac, open preferences and navigate to NuGet - Sources. Add "https://www.myget.org/F/ansuria-ci/api/v2" as a new source. Visual Studio should offer similar options if you're using that instead.

Once the path is added, you should see an update is available for XFGloss. Please update the package in both your PCL and iOS projects, then perform a full rebuild, before testing.

I will push a new release to NuGet once you've verified the issue is fixed. Thanks for reporting it!

gtbuchanan commented 7 years ago

The issue appears to be resolved now. Thank you, sir! Also, great job filling in the gaps with Xamarin styling.

tbaggett commented 7 years ago

Awesome, happy to hear it! I will push a new release to GitHub. And thanks for the kind words. Have a great weekend.