Posts

Post not yet marked as solved
0 Replies
310 Views
I use .minimumScaleFactor() in this simple example and it is not behaving as expected. Can someone explain why the text is scaled so small although having enough room to make it larger? @available(iOS 14.0, *) struct SwiftUIDynamicFontTest: View { var body: some View { VStack { Text("MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMZ") .minimumScaleFactor(0.5) .background(Color.green) Text("MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMZ") .minimumScaleFactor(0.5) .background(Color.green) Text("MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMZ") .minimumScaleFactor(0.5) .background(Color.green) } .frame(height: 390) .background(Color.blue) } } @available(iOS 14.0, *) struct SwiftUIDynamicFontTest_Previews: PreviewProvider { static var previews: some View { SwiftUIDynamicFontTest() } }
Posted
by Spriter.
Last updated
.
Post not yet marked as solved
3 Replies
2.5k Views
Hi everyone, I'm trying to add buttons to a widget having family type ".systemLarge". I want to execute some code without opening the app. Anyone knows how to do that? For example the Shortcuts App Widget includes buttons you can tap to execute a shortcut without opening the app. Best regards Marcel
Posted
by Spriter.
Last updated
.