xib2swift: do legado Interface Builder para Swift

  • Vinicius Caputo UFAL
  • Ricardo Terra UFAL

Resumo


Apple has traditionally advocated for the utilization of Interface Builder, a tool designed to structure user interface components within XIB files. However, it has become apparent that Interface Builder is associated with significant drawbacks, such as conflicts in code versioning systems and prolonged project compilation times, which have rendered the approach increasingly unsustainable. Given the ongoing shift by numerous IT companies towards Swift, this paper introduces xib2swift—a tool specifically designed to facilitate the transition from Interface Builder to Swift for iOS development projects. This research evaluates xib2swift through a dual approach: firstly, implementing the tool in a major financial corporation’s project resulted in a nearly 83% reduction in build time. Secondly, feedback gathered via a questionnaire from developers across different teams corroborates the view that while manual conversion is feasible, it tends to be tedious and susceptible to errors. Significantly, all developers concurred that the tool proved beneficial and effective for conversion purposes and expressed intentions to utilize it in future projects. Demo: https://doi.org/10.6084/m9.figshare.25948927

Referências

Pedro Alvarez. 2022. Storyboards x Xibs x ViewCode: Which one is better? Disponível em: [link]. Acesso em: 30 abr. 2024.

Gary Bennett, Mitch Fisher, and Brad Lees. 2010. Objective-C for absolute beginners: iPhone, iPad, and Mac programming made easy. Apress, Berkeley, Estados Unidos.

Donny Clayton, Craig; Wals. 2019. Complete IOS 12 Development Guide: Become a Professional IOS Developer by Mastering Swift, Xcode 10, ARKit, and Core ML. Packt Publishing Ltd, Birmingham, Inglaterra.

M. Dippery. 2015. Professional Swift. John Wiley & Sons, Indianapolis, Estados Unidos.

Craig Grummitt. 2017. iOS Development with Swift. Simon and Schuster, Shelter Island, Estados Unidos.

Jack; LaMarche Jeff Mark, Dave; Nutting. 2011. Beginning iOS 5 Development: Exploring the iOS SDK. Apress, Berkeley, Estados Unidos.

Giovanna Moeller. 2022. iOS e Swift: Diferenças na construção de layouts com Storyboard, XIB e View Code. Disponível em: [link]. Acesso em: 17 set. 2023.

Alexander Nekrasov. 2022. UIKit and Storyboards. Apress, Berkeley, Estados Unidos.

Donny Wals. 2017. Mastering iOS 11 Programming (2nd ed.). Packt Publishing Ltd, Birmingham, Inglaterra.

Richard Wentk. 2010. Cocoa. John Wiley & Sons, Indianapolis, Estados Unidos.
Publicado
30/09/2024
CAPUTO, Vinicius; TERRA, Ricardo. xib2swift: do legado Interface Builder para Swift. In: SIMPÓSIO BRASILEIRO DE ENGENHARIA DE SOFTWARE (SBES), 38. , 2024, Curitiba/PR. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2024 . p. 739-745. DOI: https://doi.org/10.5753/sbes.2024.3576.