1
4
submitted 1 week ago* (last edited 1 week ago) by [email protected] to c/[email protected]
2
3
submitted 1 week ago by [email protected] to c/[email protected]

“E.V.A Information Security researchers uncovered several vulnerabilities in the CocoaPods dependency manager that allows any malicious actor to claim ownership over thousands of unclaimed pods and insert malicious code into many of the most popular iOS and MacOS applications. These vulnerabilities have since been patched.”

3
6
submitted 3 weeks ago by [email protected] to c/[email protected]
4
8
submitted 4 weeks ago by [email protected] to c/[email protected]
5
8
submitted 1 month ago by [email protected] to c/[email protected]

“The Swift compiler is notoriously slow due to how types are inferred. Every June I hope that Apple will announce that they fixed it; sadly this is not that year.”

6
10
What's new in Swift 6.0? (www.hackingwithswift.com)
submitted 1 month ago by [email protected] to c/[email protected]
7
6
submitted 1 month ago by [email protected] to c/[email protected]

Hey all! I've been writing up a series on the changes coming to Swift 6 related to concurrency. Thought I'd start sharing them here too.

8
3
submitted 3 months ago by [email protected] to c/[email protected]
9
2
submitted 3 months ago by [email protected] to c/[email protected]
10
10
submitted 3 months ago by [email protected] to c/[email protected]
11
2
submitted 7 months ago by [email protected] to c/[email protected]
12
1
submitted 7 months ago by [email protected] to c/[email protected]
13
2
submitted 9 months ago by [email protected] to c/[email protected]

“Now that iOS 17 is available, let’s analyze its built-in apps to answer a few questions: How many binaries are in iOS 17? Which programming languages are used to develop these apps? How many apps are written with Swift? What is the percentage of apps using SwiftUI versus UIKit?”

14
1
submitted 9 months ago by [email protected] to c/[email protected]

cross-posted from: https://programming.dev/post/3558087

Type parameter packs and value parameter packs allow you to write a generic function that accepts an arbitrary number of arguments with distinct types. As a result of SE-393, SE-398, and SE-399, you can use this new feature from Swift 5.9.

15
2
submitted 9 months ago by [email protected] to c/[email protected]
16
1
SwiftUI Sensory Feedback (useyourloaf.com)
submitted 10 months ago by [email protected] to c/[email protected]

In iOS 17, Apple added a range of sensory feedback view modifiers to SwiftUI removing the need to rely on UIKit.

17
1
submitted 10 months ago by [email protected] to c/[email protected]

#Predicate is a new Macro available since Swift 5.9 and Xcode 15, allowing you to filter or search a data collection. It can be seen as a replacement for the old-fashioned NSPredicate we’re used to from the Objective-C days.

18
1
submitted 11 months ago by [email protected] to c/[email protected]

An overview of the different types of charts you can make with Swift Charts

19
1
submitted 11 months ago by [email protected] to c/[email protected]

Get ready to dive deep into the inner workings of the Objective-C language and runtime! Each post delves into a specific aspect of the language and explores the details of its implementation. I hope you’ll find this valuable to demystify the language, tackle tricky bugs, and optimize your code for performance.

20
1
submitted 1 year ago by [email protected] to c/[email protected]

Hi,

I thought we could make a list of open source Swift projects that's open to public contribution. Which is one of the most effective ways to really learn programming.

We could follow this template to make it easy for readers:

Title in Bold

Short Description:

Link:

21
1
submitted 1 year ago by [email protected] to c/[email protected]
22
1
submitted 1 year ago by [email protected] to c/[email protected]

We’re excited to announce a new open source package called Swift HTTP Types.

Building upon insights from Swift on server, app developers, and the broader Swift community, Swift HTTP Types is designed to provide a shared set of currency types for client/server HTTP operations in Swift....

23
0
submitted 1 year ago by [email protected] to c/[email protected]

So I've got the following code, which seems to work, and I'm wondering if there is a better, cleaner way to approach adding/editing elements in an array.

var category: Category
var idx: Int = -1

switch mode {
case .add:
    category = Category()
case .edit(let _category):
    category = _category
    idx = categoryViewModel.categories.firstIndex(of: _category) ?? idx
}

category.name = categoryName
category.icon = "category-\(categoryIdx)"
category.color = colors[colorIdx]

switch mode {
case .add:
    categoryViewModel.categories.append(category)
case .edit:
    categoryViewModel.categories[idx] = category
}

I understand I'm not checking idx to make sure it's not -1. I'm not concerned about that part right now. It's the overall approach I'm looking for thoughts on.

Thanks!

24
1
submitted 1 year ago by [email protected] to c/[email protected]
25
1
WWDC 2023: What's New in Core Data (betterprogramming.pub)
submitted 1 year ago by [email protected] to c/[email protected]

Although at WWDC 2023, Apple will mainly focus on introducing the new data framework SwiftData, Core Data, as the cornerstone of SwiftData, has also been enhanced to some extent.

view more: next ›

Swift

341 readers
2 users here now

This group focus on the content related to the development of Apple Eco-system software. So feel free to share and talk about, for example;

founded 1 year ago
MODERATORS