Sobes.tech

What are the advantages of using XIB in iOS interface development?

Junior — Middle
208

What is the complexity indicator for adding an element to the beginning of a doubly linked list?

Junior — Middle
208

What is the difference between using an array and using a set in programming?

Junior — Middle
208

In what scenarios is the Copy-on-write technique used to optimize performance or memory management?

Junior — Middle
207

If you use DispatchQueue with WorkItem and call cancel() — when and how does the cancellation occur?

Senior
206

let parent = Task { let child = Task { print("child started, isCancelled = ", Task.isCancelled) // for index in (1...[phone]) { print(index) } print("child finished, isCancelled = ", Task.isCancelled) // } await child.value } try? await Task.sleep(nanoseconds: 1_000_000_000) // 1 second parent.cancel()

Senior
206

What is the process of combining multiple operations into one sequence for execution called?

Junior — Middle
204

When implementing a new screen or feature, do you immediately write in SwiftUI, or are there discussions about choosing between UIKit and SwiftUI?

Senior
204

final class ProfileViewModel1 { enum State { ... } var state: State = .idle let service: UserService init(service: UserService) { ... } func onBackPress() { // view deinit } func loadUser() { state = .loading Task { [weak self] guard let self else { return } do { let user = try await self.service.fetchUser() self.state = .loaded(user) } catch { self.state = .failed(error.localizedDescription) } } } }

Senior
204

How was gesture and zoom interaction implemented in the photo gallery — using UIKit or SwiftUI?

Senior
203

Self -> Task -> (strong) Self .... Back -> View desinit -> View model deinit?

Senior
202

protocol SomeProtocol {} func test1_1(value: SomeProtocol) {} func test1_2(value: any SomeProtocol) {} func test2_1(value: some SomeProtocol) {} func test2_2<Value: SomeProtocol>(value: Value) {} class A { func test2_2<Value: SomeProtocol>(value: Value) { } } class B: SomeProtocol { } A().test2_2(value: B())

Senior
202

struct ExampleView: View { var body: some View { VStack { FormView() Button("Reset") { // TODO: } } } } // READ ONLY struct FormView: View { @State private var firstname = "" @State private var lastname = "" @State private var email = "" @State private var website = "" var body: some View { Form { TextField("Enter firstname", text: self.$firstname) TextField("Enter lastname", text: self.$lastname) TextField("Enter email address", text: self.$email) TextField("Enter website address", text: self.$website) } } }

Senior
202

What tasks or work do you dislike and prefer to avoid in your professional activity?

Junior — Middle
200

Can you give an example of implementing the dependency inversion principle in a project?

Junior — Middle
200

What is the minimum target iOS version currently in the project?

Senior
196

```swift struct ContentView: View { var body: some View { ScrollView { content .padding(20) } .background(Color(.systemGroupedBackground)) .overlay(alignment: .bottom) { continueButton } } } ``` ```swift struct ContentView: View { var body: some View { ScrollView { content .padding(20) } .background(Color(.systemGroupedBackground)) .safeAreaInset(edge: .bottom) { continueButton } } } ```

Senior
191
/207