Coder Social home page Coder Social logo

msicc / ios16orientationlocksample Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 1.0 166 KB

With iOS 16, Apple made some old APIs non-functional. This includes also the established way of locking the orientation. In this blog post, I am going to show you how you can lock orientation on iOS 16 while the app is running with both .NET MAUI and Xamarin.Forms.

Home Page: https://msicc.net/how-to-lock-orientation-at-runtime-on-ios-16-with-net-maui-and-xamarin-forms/

License: MIT License

C# 100.00%
dotnet ios maui orientation orientation-lock xamarinforms

ios16orientationlocksample's Introduction

Hello World 👋


Who am I ⁉️

My Name is Marco Siccardi. I am an technology-loving lateral entrant to programming, focusing on .NET/C# for more than a decade now. Proponent of the MVVM programming pattern. Not shying away from occasional trips to other programming languages if necessary.

Publishing software as MSiccDev Software Development.

Father of two teenager, husband of a fantastic wife.

Technologies 🛠

  • Programming Languages: C#/.NET, SQL, basic knowledge of: JavaScript, HTML, CSS, Kotlin, Swift, Objective-C
  • Frameworks: Xamarin (Forms), .NET MAUI, WPF, UWP, Windows Forms, ASP.NET (CORE) (MVC, Blazor, Razor),
  • Operating Systems: Windows (Client & Server), MacOS, Linux, Android, iOS/iPadOS, Windows Mobile 5.x - 10
  • Database: MSSQL, MySQL, CosmosDB
  • IDE: Visual Studio, Visual Studio Code, Xcode
  • Others: Github, Azure, Postman, Crystal Reports, Aspose (Cells & Words), Pair Programming

Languages 🚩

German English Italian
Speaking (native) Speaking (Good) Speaking (Knowledge)
Writing (native) Writing (Good) Writing (Knowledge)

Work 💻

Galliker Tranport AG (2023/03 - open): Xamarin.Forms/.NET MAUI developer focusing on iOS.

dormakaba AG (2021/01 - 2023/02): Writing individual APIs that connect customer's systems with dormakaba products (primarily Kaba exos 9300).

ShareCommService AG (2015/01 - 2020/12): Swiss Shareholder register. Initially worked on a new system to prepare and manage shareholder meetings until the project got cancelled when the company was bought by Sisag AG. After that I was focused on improving the reporting application (WPF, SQL, Crystal Reports) and other in-house software solutions as well as supporting the IT administration.

Telefónica Germany AG (2007/07 - 2014/12): Mobile Hardware Support Agent & Application developer. I started my journey at Telefónica as support agent, advancded then together with the whole smartphone area as an expert contact within and also outside the department and finally completed the internal training program "Experts as Trainer" successfully. When the department leader heard from my lateral entrance into programming, he asked me to develop a cross platform app (Windows Phone, Android, iOS) for employees to record requests from family and friends around their cellular and landline contracts and forward it to a dedicated internal team.

Lateral entrance 📝

The trigger to start my programming career was the lack of a fishing knots application for Windows Phone. I entered the space with the help of two online video courses (Windows Phone 7 Apps for absolute Beginners, C#- for absolute Beginners), which were provided by Microsoft. Through further self-study, I gained the knowledge to program the application "Fishing Knots +" for Windows Phone. The knowledge I acquired this way, brought me finally the commission to write the internal mobile app “Friends & You” for my former employer Telefónica Germany.

My Apps 📱

Open Source 💡

  • WordPressReaderStd - .NETStandard library to easily fetch WordPress content into .NET applications
  • CoinPaprika API Client - Easily use crypotcurrency market aggregation data from CoinPaprika in your .NET applications
  • Some smaller helper libraries and forks changed for my needs, most of them hosted via MSiccDev on Github
  • Most of the samples for my blog can be found here

Currently working on ... 🚀

  • MSiccDev website - moving away from WordPress with ASP.NET Core Razor Pages
  • #CASBAN6 - creating a serverless blog with .NET 6 on Azure
  • more to announce soon

Connect 🛰

ios16orientationlocksample's People

Contributors

msicc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ios16orientationlocksample's Issues

Locking not possible on iPad

Thank you for posting that article - it really works great for iPhones.
But it seems that it is not possible on iPads to lock the orientation.

RequestGeometryUpdate shows following error:
"The current windowing mode does not allow for programmatic changes to interface orientation."

After that error the screen is not locked - rotating is still possible.

Tested with an iPad simulator with iOS 16:
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.