Skip to main content

Questions tagged [modifier]

The tag has no usage guidance.

0 votes
1 answer
49 views

How to change MULTI-LINE-MODE and SINGLE-LINE-MODE?

It seems, that the both similar questions do not contain the information I seek. I don't get how the mode change works in CL-PPCRE. I tried it with both, embedded modifiers as with the keyword ...
Demihm Seinname's user avatar
0 votes
0 answers
54 views

What is the scope of SwiftUI onChange modifier?

I am confused by the onChange modifier behaviour inside NavigationStack with single EnvironmentObject. I created this simple setup: struct ContentView: View { var body: some View { ...
MrKew's user avatar
  • 905
0 votes
2 answers
420 views

sealed class in Flutter / Dart. Meaning of "library" in Flutter / Dart

I'm looking through of sealed usage in my projects, and I can't figure it out. The "sealed" modifier states "The sealed modifier prevents a class from being extended or implemented ...
Nikita Shadkov's user avatar
0 votes
1 answer
130 views

How to make .draggable() work with click+drag rather than long-press+drag?

I have been programming an app in SwiftUI which heavily uses the in-built .draggable() and .dropDestination() modifiers. To enhance the user experience, I would like to make .draggable() work with ...
Amone1's user avatar
  • 11
2 votes
2 answers
186 views

fraction in fillMaxHeight inside a column not work(android jetpack compose)

I have a column with two buttons. at first I used maxSize for my Column and i set the vertical arrangement of my buttons to the bottom as you see in this picture. but I wanted to raise the buttons ...
Mahdi's user avatar
  • 40
2 votes
0 answers
30 views

Click accepting everywhere on a section to open and close section

For macOS I use the .contentShape(Rectangle()) modifier on other items like the TabBar to make the whole view accepting the click. However I can't get that to work in the section of a list. I don't ...
iPadawan's user avatar
  • 1,042
1 vote
1 answer
43 views

In SwiftUI recurring Stacks simplifying

For MacOS I use the following code many times to create forms. I really like to create a modifier or extension to make it more simplified. HStack{ VStack (alignment: .leading, spacing: 5) { ...
iPadawan's user avatar
  • 1,042
0 votes
1 answer
91 views

Update SwiftUI Slider with EnvironmentObject

I am trying to get the position of the slider thumb to respond to changes coming from a TextField in another view through a common EnvironmentObject (inputs). The communication works fine from Slider ...
ThomasMead's user avatar
0 votes
0 answers
71 views

zero assignment to signed integer in C++

since zero is a number that is neither positive nor negative, so what will happen if we assign a variable of type signed int a value of zero in C++? Will this be a valid assignment? In fact I have ...
user21505's user avatar
1 vote
1 answer
2k views

How to handle this error in C# "Required Member must be set in object initiialzer or attribute constructor"

I have two classes - State - Principal Class and District Dependant class. public class State { public int StateId { get; set; } public required string StateName { get; set; } public ...
SeekerOfKnowledge's user avatar
0 votes
1 answer
59 views

getting error @Composable invocations can only happen from the context of a @Composable function | composable inside pointerInput

I want to call Text inside detectDragGestures it gives error error: @Composable invocations can only happen from the context of a @Composable function Canvas( modifier = Modifier ....
Artier's user avatar
  • 1,673
0 votes
1 answer
97 views

Re-enable button based on date in SwiftUI

I'm in the process of building a habit tracker and I've come across a problem. In my app there is a button that you can click to indicate that you have completed your task. As soon as this button is ...
Fabio Pohl's user avatar
0 votes
1 answer
518 views

Trouble scaling basic Image in Compose

My problem is very simple. Yet I have been struggling for hours. Please end my insanity. I have a row with a box in the middle. I want to put an image in the box and make it so the image touches the ...
TiredDev97's user avatar
2 votes
1 answer
178 views

How to update the text values based on button click in Swift [closed]

I have shopping cart app in swiftUI . Currently when I click the add to cart button that time , it is able to add the product record into view . But here is the problem . When I click the button twice ...
Nus's user avatar
  • 165
2 votes
1 answer
101 views

macOS 13 - How do you create a Message.App Settings toolbar using SwiftUI?

Hello fellow developers. I'm trying to create an equivalent Settings window like in the Message.app settings window. With the code that Apple supplies I get nowhere, it works but shows it to small. ...
iPadawan's user avatar
  • 1,042

15 30 50 per page
1
2 3 4 5
25