ctietze, to swift
@ctietze@mastodon.social avatar

Which way using #Swift result builders would you use to express emptiness of the builder block result?

https://github.com/CleanCocoa/DeclarativeTextKit/issues/9

I do have an Identity type that's somewhat like EmptyView in SwiftUI.

Maybe the question is misguided and the actual problem is not that I should check whether the block is a no-op, but instead not perform effects in evaluation of blocks. 🤔

marcel, to swift German
@marcel@mastodon.social avatar

Adding a new SwiftData Model to my app makes it crash hard without any noticeable error message when trying to create an object with it. It's so frustrating. I don't know why.

Any ideas?

#Swift

br00t4c, to Colorado
@br00t4c@mastodon.social avatar

Colorado Republican party chair told to 'step down' after 'God Hates Pride' email

#colorado #swift

https://www.theguardian.com/us-news/article/2024/jun/07/colorado-republican-chair-dave-williams-pride-month

gregorni, to GNOME
@gregorni@fosstodon.org avatar

Are there any users of Adwaita-Swift by @david_swift? I'd like to chat a bit about the what the developer experience is like using those bindings. Feel free to DM me on Matrix!

#AdwaitaSwift #Adwaita #Gtk #Gtk4 #libadwaita #GNOME #Swift #Swiftlang

br00t4c, to conservative
@br00t4c@mastodon.social avatar

A New Novel Explores How to Develop Black Identity in the Absence of Black Culture

#culture #swift

https://www.thenation.com/article/culture/essie-chambers-swift-river-novel/#respond

br00t4c, to swift
@br00t4c@mastodon.social avatar

Taylor Swift Backs Up Lady Gaga Amid "Invasive and Irresponsible" Pregnancy Speculation

#swift #taylorswift

https://www.vanityfair.com/style/story/taylor-swift-lady-gaga-pregnancy-speculation

davidbures, to swift
@davidbures@mstdn.social avatar

Folks, have you had any success in merging the new Strings catalog in Xcode 15?

A nice contributor translated Cork into Spanish. Unfortunately, they didn’t use the correct branch. The main branch had a few changes to the Strings catalog.

Now I have 500 unresolvable merge conflicts.

What can I do? 😢

younata, to swift
@younata@hachyderm.io avatar

I tested the advice that marking classes in as final improves build times. I generated 2 swift files that each have 1000 (trivial) classes: one with each marked as final, the other without. I built each file 10 times, recording the build time for that file.

Marking classes as final does improve build times. By about 7%. The difference is just outside 1 standard deviation, so I think it’s statistically significant. But I’m not a trained statistician.

I used Xcode 15.2/swift 5.9 for this.

br00t4c, to swift
@br00t4c@mastodon.social avatar
ramzesenok, to swift
@ramzesenok@mastodon.social avatar

This is a really good article #Swift’s Structured Concurrency. Even if you know most of it, it’s still a great read to refresh concepts in memory:
https://swiftonserver.com/getting-started-with-structured-concurrency-in-swift/

davidbures, to swift
@davidbures@mstdn.social avatar

OH MY GOD I CAN'T BELIEVE I FINALLY FIGURED IT OUT!! The next Cork release will be fucking EPIC

(Cork now supports packages that require sudo during install/uninstall)

#swift #swiftUI #macOS #opensource #buildinpublic #macdev #homebrew #CorkApp

A demo showing new support for packages requiring sudo in Cork

nimblebit, to swift

Our remake of our multiplayer word game Capitals is now available completely for free on iOS! Go challenge a friend!

https://apps.apple.com/us/app/capitals-word-game/id6499354232

#iOSDev #swift #swiftui #WordGames #GameDev #indiedev

davidbures, to swift
@davidbures@mstdn.social avatar

Has anyone here succeeded in setting up jekyll-apple-help to generate help books for macOS? This project: https://github.com/chuckhoupt/jekyll-apple-help

I wanted to use it to create a help book for Cork, but I'm having some major problems setting it up, and the guide is very hard to follow.

If anyone managed to set it up, would you be willing to help me? It would help a lot 😊

davidbures, to swift
@davidbures@mstdn.social avatar

Like I promised a few days ago, here’s the discount code for Cork to celebrate my birthday tomorrow!

HaBi1998

It will be valid from tomorrow, June 1st, until June 8th 😊

https://mstdn.social/@davidbures/112490278078275747

I’d really appreciate if you shared this so as many people as possible can take advantage of the 60% discount!

#swift #swiftui #IndieAppSales #CorkApp #buildinpublic #opensource #macos

twostraws, to random
@twostraws@mastodon.social avatar

Tomorrow @mikaelacaron and I record the next @swiftovercoffee episode and we want your views for our open ballot! We're celebrating Swift turning 10, so tell us: how did it impact your life? Did it get you jobs? Did it help you go indie? Did it give you lots of fun? Tell us! 👇

iriepixel,
@iriepixel@mastodon.social avatar

@twostraws @mikaelacaron @swiftovercoffee I was always afraid of Objective-C and couldn't understand the #syntax, so I stuck to #JavaScript for quite a while. #Swift made me finally give #iOS #development another try and I love it. However, I'm just in the beginning of this journey.

br00t4c, to swift
@br00t4c@mastodon.social avatar
SergKoren, to programming
@SergKoren@writing.exchange avatar

When you isolate a function that causes problems and can’t deduce the problem, rewrite the function differently. At least you’ll have different problems.

paris, to swift
@paris@hachyderm.io avatar

let’s goooooo bay area friends! no, you don’t need to attend WWDC to RSVP to the social.

#swiftlang #swift

RE: https://hachyderm.io/@holly/112527188602767590

thatvirtualboy, to swift
@thatvirtualboy@techhub.social avatar

App Review rejected my macOS menu bar app, Done, because the “app menu is missing the required Quit option.“

However, the app allows a quit operation by right clicking the menu bar app icon and choosing quit. Do menu bar apps usually support other methods to quit? Is it possible they didn’t try this?

#iOSDev #swift

Krupp, to swift
@Krupp@hci.social avatar

If you are looking for a weather app that is simple and does not track your location, try Ducky Weather! One thing I have found in our research group is that the most popular free weather applications send your location to trackers and I wanted to create an app that does not do that. Because it uses NWS data, it is only available in the US.

More features to come but suggestions are welcome!

https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=6474254666

nicoreese, to swift
@nicoreese@mastodon.social avatar

If I want to use String(localized:) to localize a variable, is this the best way? I can’t put it in directly like I used to with NSLocalizedString. In this case, the variable comes from Core Data, otherwise I could probably declare it directly as LocalizedStringResource. #Swift #SwiftUI #UIKit #Localization

finestructure, to swift
@finestructure@mastodon.social avatar

My first package build / test run ever on 🚀

It’s actually quite easy to get started thanks to winget. Use it to install the dependencies (git, python, VS Studio 2022) and then Swift itself

winget install --id Swift.Toolchain -e

and off you go! 🎉

ktoso, to swift
@ktoso@mastodon.social avatar

Want to with me and the rest of the language team to make the hottest thing since sliced bread? New job posting is up: https://jobs.apple.com/en-us/details/200553215/swift-compiler-engineer

Sadly remote is not an option, California only.

Feel free to DM me with questions.

davidbures, to swift
@davidbures@mstdn.social avatar

While implementing the package previews, I ran across one state that Cork didn't have covered yet: when an app is already installed outside of Homebrew, and you try to install the Homebrew version.

Instead of getting stuck, you now get this status.

#swift #swiftUI #macOS #opensource #buildinpublic #macdev #homebrew #CorkApp

davidbures, to swift
@davidbures@mstdn.social avatar

Today, I merged the basic support for Shortcuts into mainline Cork. After that, I decided to take on another challenge

I thought it would be cool to be able to see detailed info about a package before you install it. This feature actually used to be in Cork back in 2022! But I had to remove it… until now!

It's far from complete, but I'm doing my best

#swift #swiftUI #macOS #opensource #buildinpublic #macdev #homebrew #CorkApp

Very old package preview from 2022

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines