Questions tagged [ios]
iOS is an operating system for mobile devices developed by Apple Inc. that is currently used in their iPhone, iPod touch, iPad, and Apple TV (2nd generation) devices. It shares a lot with Mac OS X, but is optimized for touch-based interfaces. Use this tag for questions about iOS-specific code.
392 questions
1 vote
0 answers
44 views
Using a ViewModel in a simple SwiftUI screen with a list and API call
I'm building a SwiftUI screen that displays a list of notifications, using a ViewModel to handle state and API calls. The screen is fairly straightforward: it has a header and a paginated notification ...
1 vote
0 answers
85 views
SwiftUI: Handling number-inputs via TextField (actually String)
I'm creating a Settings-form in SwiftUI. One of the expected values is a double. I tinkered with NumberFormatter, but it didn't work well for me. Moreover I had to find a way making invalid values ...
4 votes
1 answer
239 views
SwiftUI TimeUnits-Converter App
The given task is to implement a time-units app. I guess I got the main logic right, but concerning the UI-coding there could be improvements. Here's my code: ...
2 votes
1 answer
106 views
Show a list of downloads
I've been working on a Swift project that involves a seedbox app for my NAS, and I would appreciate some feedback on the code structure and especially on the placement of my observer. I've implemented ...
1 vote
1 answer
100 views
Javascript CLI to boot iOS simulators, install project, extract data, and merge into JSON
I'm a DIY "dev" - so I really create things that I need or think they'll end up helping others. I wrote this Swift Package so the iOS community could get device bezel radius' to help with UI ...
3 votes
2 answers
142 views
Building a UITableView with fixed number of cells progammatically
I am building this pet project with UIKit. The App's main goal is to keep track of my daily expenses. The AddExpenseViewController is responsible for capturing user ...
2 votes
1 answer
209 views
MVVM pattern in Swift
I've been coding for some time now and since I am working alone I'm not strict in my coding structure approach(bad idea) and was only focused on getting things done which resulted in MVC(MASSIVE-View-...
5 votes
1 answer
136 views
Function for formatting data retrieved from a battery via Bluetooth Low Energy
I have the following function in Swift and am looking to improve the readability. The function takes from the deviceData object which holds maps of data like ...