Click here to Skip to main content
15,887,331 members
Everything / Programming Languages / Swift

Swift

Swift

Great Reads

by Paulo Zemek
Mistakes that can be made while using MVVM and how to overcome them
by Vince Chan
Pwnage Checker is an iOS app that allows users to check whether an account has been compromised in a known data breach
by raddevus
Learn to create iOS apps using Xcode while you learn Swift. (If you've ever wanted to see iOS app dev in action, take a look at the screenshots.)
by pgmr_64804
Tree View in Swift for iOS that is easy to implement and use

Latest Articles

by Serhii Krotkykh
On easy example shown how to implement UIKit and SwiftUI TableView auto resizable cells and explained difference between Nib and Xib, how to load nib file and what exactly owner parameter of the load nib file method.
by Serhii Krotkykh
Example of using result builder for the MVVM pattern
by Dearich
First part of the ultimate guide on how to add a Live Activity feature to your project
by Paulo Zemek
Mistakes that can be made while using MVVM and how to overcome them

All Articles

Sort by Updated

Swift 

28 Mar 2024 by Andre Oosthuizen
Your issue lies within the message - Quote: TypeError: object of type 'TarInfo' has no len() Your 'iter_wrapper' function in your 'swiftclient.utils' module is trying to read the length of a chunk of data, but it's encountering a 'TarInfo'...
21 Mar 2024 by Hanginium2412
I wrote a Python script which included the python-swiftclient module to connect to the OpenStack Object Storage and upload some files to the container after reading the python-swiftclient documentation:...
13 Sep 2023 by Pravin TS
I am trying to integrate WireGuard for iOS and macOS in Xcode, the build process is success, but the integration shows error,although I had followed the procedures said in...
16 Jul 2023 by OriginalGriff
As Richard and Bryian have said, you need to look at the actual data you are processing: either use the debugger, or log it to a file for post-processing examination. Without that, you are just guessing and can't be sure what is going on. But...
16 Jul 2023 by Member 14024497
why is this error popping out MC] Reading from public effective user settings. Error: Couldn't decode data into Blog: dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain...
13 Mar 2023 by Funghi Funghi
I want to make a module in swift app for scanning physical ID and using some of scanned info to reproduce this ID in app. Is it possible to make some sort of pattern or map (every ID is has same dimensions and layout) to get the necessary data...
25 Feb 2023 by smartdev0126
We've developed trojanVPN based on tun2socks and used tun2socks library. This is source code of VPNManager.swift import Foundation import NetworkExtension extension NEVPNStatus: CustomStringConvertible { public var description: String { ...
22 Feb 2023 by Member 8840306
I am new in swift.I took code from this link. I have first CollectionView(that is array of images) in side first `section` tableView.That was working fine as that was logic provided by that link.I want to change the code so that i will display...
22 Feb 2023 by Serhii Krotkykh
On easy example shown how to implement UIKit and SwiftUI TableView auto resizable cells and explained difference between Nib and Xib, how to load nib file and what exactly owner parameter of the load nib file method.
17 Feb 2023 by Serhii Krotkykh
Example of using result builder for the MVVM pattern
5 Jan 2023 by Dearich
First part of the ultimate guide on how to add a Live Activity feature to your project
2 Jan 2023 by chirag patel 2023
I want to create 3 headers in the tableview given in the images and 8 students in each row, my code is as follows https://i.stack.imgur.com/zynoj.png[
7 Dec 2022 by ameen khalil
Hey Guys, I am trying to build an apple watch app, which will detect when the arm of the user touches the ground or the user goes towards ground. example use case: Burpies, this is one type of excersize where a man stands up, does squats and...
24 Jun 2022 by RickZeeland
Maybe you can take a look at the free and open-source FreeFileSync[^] for inspiration. The source code can be found here: GitHub - hkneptune/FreeFileSync: A Copy of FreeFileSync Source Code[^]
24 Jun 2022 by Charles Urban
I'm currently developing an app for a company who wants to be able to press a button on an iPad that will launch a program on a windows pc, gather information from the windows pc and return that info back to the iPad. What I have tried: I've...
24 Jun 2022 by rnbergren
do you have any code examples of what you have tried?
30 Apr 2022 by Anar Aliyev 2022
I am trying to add Firebase Phone Authentication in my app but getting error every time when I want to send tel number to firebase. It states that - unrecognized selector sent to instance 0x20d326df8. I am using real IPhone not simulator. Here is...
24 Mar 2022 by OriginalGriff
Repost: Deleted. Please do not repost your question; use the Improve question widget to add information or reformat it, but posting it repeatedly just duplicates work, wastes time, and annoys people. I'll delete this one.
24 Mar 2022 by dex1996
Star Print Problem Using Swift For-Loop. I am a swift beginner. The teacher gave me the questions. I tried to work for it. However, the teacher expect to have another solutions. Could anybody give me some suggestions? //Question01 * *** **...
24 Mar 2022 by Dave Kreskowiak
You're not looking at the pattern in those lines, specifically, what happens to the count of the number of stars from one line to the next. That's all the help you're going to get because the rest is easy.
23 Mar 2022 by OriginalGriff
While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for...
14 Mar 2022 by Paulo Zemek
Mistakes that can be made while using MVVM and how to overcome them
11 Jan 2022 by Member 15127345
I'd like to iterate through the tuple in a for loop, like this: for i in 0...4{ if let value = element.list_of_keywords?.i, value == keyword { if let value = element.name{ returnListOfCities(name: value) ...
11 Jan 2022 by Member 15127345
I'm just starting out my journey in Swift and I have a task to do that I need help with. First, I have to create a data model and an array: Quote: City model object should contain: id, name, description, latitude, longitude, list of keyword/tag...
11 Jan 2022 by Richard MacCutchan
I am not a Swift programmer. However, after reading https://docs.swift.org/swift-book/LanguageGuide/ClassesAndStructures.html[^] I would make the following suggestion. The task is to create an array of City objects, not strings of city names. So...
16 Nov 2021 by ShinehahGnolaum
When I use the Contacts Framework with Swift for iOS 15 using Xcode 13, when I use CNContactStore instance method unifiedContacts(matching:keysToFetch:), what happens to those CNContact objects that are not linked with any other CNContact...
11 Nov 2021 by Sleeper 11888211
Thanks Richard! I added %20 to substitute for spaces: New York ---> New%20York and it worked as expected. Swift: if let city_old = searchTextField.text { city = city_old.replacingOccurrences(of: " ", with: "%20") ...
11 Nov 2021 by Sleeper 11888211
I have Swift code to call on the Open Weather API.The code works well with any one word city (eg Rome), but balks at a city with more than one word (eg New York). I have some print statements to show console output at various steps and they...
6 Sep 2021 by OriginalGriff
We really can't help you: we have no access to your code or any idea what it is doing. So it's going to be down to you - and the chances are you'll have to fall back to old-school debugging: manual logging. If you can get it to fail under the...
29 Jun 2021 by Dener Araújo, André Marcos (Advisor)
A Mobile Application Development for a Private Network Connection on iOS Platform Using Prococol OpenVPN
14 Jun 2021 by Abbas Gujjar
Suppose we navigate to child view and when the Parent View updates then automatically back navigation performs up to Parent View. Can we disable this Behaviour? What I have tried: I have a list of card views and when I click on one of them...