From the course: .NET MAUI Essential Training

Unlock the full course today

Join today to access over 24,000 courses taught by industry experts.

Creating the iOS service

Creating the iOS service

- [Instructor] Let's go back into our platform-specific folders in our library here. Remember, we had our VersionInfo. Let's go ahead and just open that, and we're just going to copy this whole thing. And now we'll go down for iOS. We'll rename this. Call it VersionInfo. We'll open it up. We'll paste that in. And now we've got Android code in our iOS piece, which isn't going to work for us. But I can use NSProcessInfo. Go out here. I'm using Foundation. I got the ProcessInfo, OperatingSystemName. And that's what we'll turn on iOS. I'm going to go ahead with the MacCatalyst, I'm just going to delete the PlatformClass that's in there. And then we'll copy and paste from the iOS version in there. So that should work. And then let's go to Windows. Go ahead and rename this. VersionInfo. And we'll open that up. Paste, I'm going to do paste. We've got that in. And so, for here, we're just going to…

Contents