Sobes.tech

Can you name the main behavioral patterns in software system design?

Junior — Middle
252

Why is it sometimes necessary to create a custom View class inheriting from UIView inside a UIViewController?

Junior — Middle
252

```swift struct CustomButtonStyleView: View { var body: some View { VStack { Button("Button") { print("Tapped") } .buttonStyle(CustomButtonStyle()) } } } private struct CustomButtonStyle: ButtonStyle { func makeBody(configuration: Configuration) -> some View { configuration.label .padding() .foregroundColor(.white) .background(Color.red) .clipShape(RoundedRectangle(cornerRadius: 8)) } } ``` ```swift struct CustomButtonStyleView: View { var body: some View { VStack { Button("Button") { print("Tapped") } .buttonStyle(CustomButtonStyle()) } } } private struct CustomButtonStyle: ButtonStyle { func makeBody(configuration: Configuration) -> some View { configuration.label .padding() .foregroundColor(.white) .frame(maxWidth?) .background(Color.red) .clipShape(RoundedRectangle(cornerRadius: 8)) } } ``` ```swift struct CustomButtonStyleView: View { var body: some View { VStack { Button("Button") { print("Tapped") } .buttonStyle(CustomButtonStyle()) } } } private struct CustomButtonStyle: ButtonStyle { func makeBody(configuration: Configuration) -> some View { configuration.label //.padding() //.foregroundColor(.white) .frame(maxWidth: .infinity) .background(Color.red) //.clipShape(RoundedRectangle(cornerRadius: 8)) } } ``` ```swift struct CustomButtonStyleView: View { var body: some View { VStack { Button("Button") { print("Tapped") } .buttonStyle(CustomButtonStyle()) .frame(width: 200) } } } private struct CustomButtonStyle: ButtonStyle { func makeBody(configuration: Configuration) -> some View { configuration.label //.padding() //.foregroundColor(.white) .frame(maxWidth: .infinity) .background(Color.red) //.clipShape(RoundedRectangle(cornerRadius: 8)) } } ``` The task appears to be about customizing a SwiftUI button style, experimenting with different modifiers such as padding, foreground color, frame width, background color, and clipping shape. The question likely involves fixing or improving the button style to achieve a desired appearance or behavior, such as making the button fill the available width or adjusting its visual style.

Senior
252

Which HTTP header is used to specify the data type transmitted between client and server?

Junior — Middle
251

What process or thread is responsible for handling the user interface in the system?

Junior — Middle
251

Have you used the Environment object in a real production environment?

Junior — Middle
251

How to programmatically force the interface to update in iOS?

Junior — Middle
251

What functions or techniques are used to detect and handle user tap events on the screen?

Junior — Middle
251

What data type is usually used to implement optional values?

Junior — Middle
251

What main principles do you follow when developing architectural solutions?

251

Why does the Swift compiler not automatically create a parameterized constructor for classes?

Junior — Middle
251

What types of testing would you implement when creating an application from scratch?

Junior — Middle
251

How do you understand the term 'structured concurrency' in Swift? Does Task.detached fit this concept?

Senior
250

How will the dispatching mechanism change when inheriting an object from the NSObject class?

250

How to distinguish a set with unique elements from a dictionary with keys and values?

Junior — Middle
250

Which protocol ensures interaction between UIView and the event handler chain?

Junior — Middle
250
/188