Movatterモバイル変換


[0]ホーム

URL:


Sorry, we no longer support your browser
Please upgrade toMicrosoft Edge,Google Chrome, orFirefox. Learn more about ourbrowser support.
Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities includingStack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Loading…
Code Review

Questions tagged [swift]

Ask Question

Swift is a general-purpose, multi-paradigm, compiled programming language developed by Apple Inc. for iOS, iPadOS, macOS, watchOS, tvOS, Linux, and z/OS.

660 questions
Filter by
Sorted by
Tagged with
2votes
1answer
128views

I need a function which finds the left and right neighbor-element within an integer-array, based upon a given index. If the given element is 0, then it shall return largest index as left neighbor. ...
michael.zech's user avatar
5votes
4answers
303views

To compare ergonomics and performance of some languages for my hobby projects, I have written a simple lines of code counter in Swift, Go, Rust and Python. It scans a given directory tree for source ...
user avatar
1vote
0answers
47views

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 ...
Bhavesh.iosDev's user avatar
4votes
3answers
375views

I got to process a simple text-file, which contains key-value pairs. Key-value shall be separated by a tabulator.Here's the prototype, which I figured out:...
michael.zech's user avatar
0votes
0answers
51views

For getting familiar with SwiftUI NavigationSplitView, I created a prototype, which implements a three-column view.Screenshot:Code (View):...
michael.zech's user avatar
1vote
0answers
52views

I created the following class to ease UserDefaults get/set within my Swift project....
geohei's user avatar
1vote
0answers
85views

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 ...
6votes
1answer
216views

I want to show an interactive audio waveform like this.I've extracted the sample data using AVAssetReader. Using this data, I'm drawing a UIBezierPath in a Scrollview's contentView. Currently, when I ...
4votes
1answer
116views

Task:Write a function which rotates all elements of a given array to the right.Example: [1, 2, 3] => [3, 1, 2]My solution:...
michael.zech's user avatar
4votes
2answers
217views

Loosely inspired by Ruby's String.count-method I wrote a similar Swift-method myself as an extension to the String-class. Then I had the idea to use a second parameter with which you can control if ...
2votes
1answer
110views

Task: Write a function, which receives an optional array of optional integers and returns a none-optional integer. In case the array isn't nil: Return one randomly selected integer. In case the array ...
michael.zech's user avatar
4votes
1answer
239views

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:...
michael.zech's user avatar
3votes
1answer
70views

I have read the last two days through several tutorials about how to mock a HTTP-request against a REST API.Finally I made a prototype for applying, what I have understood from the tutorials.Here's ...
michael.zech's user avatar
3votes
2answers
407views

Task: Write a function, which computes the Digital Root of a given number n.Here's the solution, which I developed:...
michael.zech's user avatar
3votes
1answer
78views

I've written a simple list in SwiftUI that accepts a generic data type.The goal was to make a reusable list where when an item was selected, the list would execute a callback with the selected data....
dubbeat's user avatar

153050per page
1
2345
44

Hot Network Questions

more hot questions
Newest swift questions feed

[8]ページ先頭

©2009-2025 Movatter.jp