What are the advantages of using XIB in iOS interface development?
iOS
What is the complexity indicator for adding an element to the beginning of a doubly linked list?
What is the difference between using an array and using a set in programming?
In what scenarios is the Copy-on-write technique used to optimize performance or memory management?
If you use DispatchQueue with WorkItem and call cancel() — when and how does the cancellation occur?
At what stage of code execution do you define and apply constraints?
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()
What is the process of combining multiple operations into one sequence for execution called?
When implementing a new screen or feature, do you immediately write in SwiftUI, or are there discussions about choosing between UIKit and SwiftUI?
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) } } } }
How was gesture and zoom interaction implemented in the photo gallery — using UIKit or SwiftUI?
Self -> Task -> (strong) Self .... Back -> View desinit -> View model deinit?
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())
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) } } }
What tasks or work do you dislike and prefer to avoid in your professional activity?
Can you give an example of implementing the dependency inversion principle in a project?
Do you have plans in the future to become a project or team leader?
What is the minimum target iOS version currently in the project?
Why does adding a mutex only for writing not solve the data race problem? How to correctly use a mutex to protect a shared variable?
```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 } } } ```