visible studio 2022 – Utilizing .Internet 8 for iOS [NOT MAUI], add a LaunchScreen with brand picture and background colour

0
11
visible studio 2022 – Utilizing .Internet 8 for iOS [NOT MAUI], add a LaunchScreen with brand picture and background colour


Aim:

Create a splash display (“LaunchScreen”) for a “.Internet 8 for iOS” C# app (successor to “Xamarin Native / iOS”).

The splash display comprises a picture (a brand) scaled to fill (sustaining facet ratio) the display, with a small margin.

Requirement:

  • Do not depend on any Microsoft instruments on mac (e.g. VS Code + .Internet extension). On the mac, solely use Xcode.

Rationale: As a lot as potential, work on the PC. Decrease reliance on putting in/studying/sustaining instruments on the Mac.

HOWEVER, if the solely [Microsoft] answer is to make use of these Microsoft instruments on the mac, then that might be a helpful reply.

(NOTE: JetBrain’s Rider on mac allegedly can do that simply. I’ve not verified that myself, nor verified that Rider is up-to-date with newest xcode and ios variations.)


Associated query:

Led Machine’s reply to xamarin.ios – Tips on how to change splash display is much like the LaunchScreen.storyboard I’ve. I used to be unable to get that .storyboard to work both.

One thing appears to have basically modified since these days.

Provided that the expertise is now not “Xamarin”, and that each one the concerned instruments and targets (each Microsoft and Apple) have modified since then, it appears applicable to begin a brand new query.

Particularly since Microsoft now not has both an Xcode-like storyboard editor, nor have they changed it with bidirectional-syncing with an Xcode undertaking. At the very least not for C#.

C++ / Sync modifications between Xcode and Visible Studio seems to be the same answer for C++.
Presumably, if that existed for C#, I’d have been capable of make the edits in xcode, then have the C# .csproj efficiently incorporate these modifications.


What I’ve performed:

Apple Doc: Specifying your app’s launch display.

  • Use Xcode to create a local app (Goal-C or Swift). Specify LaunchScreen as storyboard. Set background colour to Blue. Add a .png picture file to undertaking. Add a UIImageView to the LaunchScreen, and choose that .png. Run native app.

Success: See .png on blue background, then important view of app.

Testing each on iOS (17.2 and 18.1) Simulator on mac, and on an iPad (iOS 18.3.2) hooked up to mac.

Xcode 16.1. [There doesn’t appear to be any Xcode problem; I doubt upgrading or downgrading would help.]


The place I’m caught:

Get that very same LaunchScreen.storyboard + .png file to work in .Internet 8 C# undertaking in Visible Studio 2022, deployed from Home windows to mac through “Pair to mac”.

This “ought to” be a straightforward job.


What I’ve tried:

I can copy launchimage.png, and LaunchScreen.storyboard from (working) native Apple Swift undertaking again to the C# undertaking.

data.plist comprises:

    UILaunchStoryboardName
    LaunchScreen

Nevertheless, when the LaunchScreen ought to seem, there’s merely a black display. I do not even see the Blue background colour I set, not to mention the picture. [After the black screen, the app’s main screen appears.]

  • I’ve tried setting numerous “Construct” choices in VS Resolution Explorer Properties. For LaunchScreen.storyboard and launchimage.png. Nevertheless, since this isn’t a Maui undertaking, I have never discovered any setting that works. Additionally be aware that Predominant.storyboard doesn’t require any .csproj construct motion. [I presume the files are all sent to Xcode on the mac, with a build script that does what is needed for storyboards.]

NOTE: If this had been a MAUI cross-platform app, this is able to be simple. There’s a MAUI choice to create a easy launch display with brand. That works for me, in a special app take a look at. However that is not relevant to this replace of a “Xamarin Native / iOS” app.

LEAVE A REPLY

Please enter your comment!
Please enter your name here