Comments (6)
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Open similar issues:
- Default styling for controls does not work! (#17414), similarity score: 0.73
- Implicit styling on .NET 8 is being ignored on the page level (#19820), similarity score: 0.71
Closed similar issues:
- [Scenario Day] Some colors of the default styles of Templates do not seem correct (#7135), similarity score: 0.72
- Color changes in default project template prevent flyout button from being visible (#21280), similarity score: 0.71
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
from maui.
This issue is similar to #17414. The other issue lists Windows as the affected platform and gives an example of a Windows corner radius. This issue lists all platforms as likely affected and gives examples of iOS font size and color.
from maui.
Are you able to test with Xcode and Objective C? I think the Swift UI styles are not the default styles but rather the new Swift UI team's implementation of the default styles.
from maui.
Hi @breyed. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
from maui.
I created a new app in Xcode using Storyboard (UIKit) for the interface. I added to the storyboard enabled and disabled buttons, leaving all attributes at their defaults. I did this with both Swift and Objective C. Regardless of the language, the colors are identical to the SwiftUI app’s colors.
iOS 13 added support for both dark mode and SwiftUI. With dark mode support, Apple added colors that vary based on light/dark mode. SwiftUI and UIKit both tap into those.
Having thought through that, I changed SupportedOSPlatformVersion in the MAUI app to 13.0. That fixed the problem. The MAUI colors and sizes now match that of XAML. XAML does add some padding around the buttons, but that appears to be intentional to cause buttons to lay out similarly between platforms. Actually, SupportedOSPlatformVersion had no effect. I had forgotten that I had added styling code to my test app to emulate the native color and size.
from maui.
https://github.com/drasticactions/MauiRepros/tree/main/AppleColors
I wrote four test apps: One in SwiftUI, One in Swift/UIKit, One in MAUI, One with .NET iOS directly with no MAUI UI Toolkit. These screenshots were taken with the iPhone 15 Pro simulator.
If you compare the Swift app with Swift UI one, you'll have the same Hex values for the colors. Likewise with Dark mode.
The Swift (Non SwiftUI) colors match up with the XAML values, and the .NET iOS C# ones. Likewise with font sizes. If you want to compare the defaults in UIKit with what's in MAUI, IMO, your best bet is not using SwiftUI to do it.
from maui.
Related Issues (20)
- [net8.0] [iOS] Memory leak on page with CollectionView HOT 3
- Using CollectionView for a list with items that can expand/collapse on tap doesn't properly resize on iOS HOT 2
- Memory leaks when replacing Application.Current.MainPage by a new one keep the old page in memory HOT 2
- Permissions.CheckStatusAsync not working first time HOT 2
- Update to .NET 8.0.60 broke custom (UraniumUI.Material) components rendering HOT 5
- [Windows] GroupHeaderTemplate width smaller than ItemTemplate HOT 3
- [.NET 9.0 Preview 5] Microsoft.Maui.Graphics.Skia uses SKBitmap and DrawBitmap, which slow down Skia hugely (should be SKImage and DrawImage)
- Multiple project templates. The project file is being loaded all the time. You need to reopen the solution in order to work properly. HOT 2
- PointerGestureRecognizer does not support multi touch on iOS - no individual touch / pointer information available
- XamlC error XC0009 with CommunityToolkit.Maui.Popup with Dotnet 9 Preview 5 HOT 2
- CodesignEntitlements doesn't seem to work in project HOT 1
- [Android] Crash on startup after enabling LLVM HOT 1
- Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui HOT 3
- View cell Tapgesture not working for MAUI8.0 HOT 1
- PanGestureRecognizer not working for iOS HOT 2
- Display the text from the beginning part when the Entry control loses focus HOT 1
- Got error XA0129: Error deploying 'files/.__override__/System.Data.Common.dll'. HOT 2
- Layouts which work fine in iOS are blank in Android, but suddenly work if "touched" via hot reload. HOT 1
- [Windows] App based on FlyoutPage uses incorrect title bar colours when system is set to Dark theme and app set to Light theme - illegible content HOT 2
- Image Loaded event not firing in 8.0.60 version which is used to fire in 8.0.40 and earlier versions. Selected 8.0.40 I am unable to see 8.0.60 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maui.