aelfled
TSDThe Swift Den
•Created by Samarth on 2/19/2024 in #swift-development
Having some trouble cloning a project using XCode
is the repo public, are you sure it has the right files committed?
5 replies
TSDThe Swift Den
•Created by Stefan on 1/27/2024 in #swift-development
Deploy watchOS app without Apple Developer Account
there isn't a way to do that, maybe after apple needs to allow other appstores in the EU
3 replies
TSDThe Swift Den
•Created by gabe on 1/20/2024 in #swift-development
Failed to launch process, couldn't communicate with helper application.
can you use cocoa in playgrounds? I thought you were to use swiftui
4 replies
TSDThe Swift Den
•Created by Timo Martinson on 1/5/2024 in #swift-development
how to randomly display data in SwiftUI?
0..1 should be fine
4 replies
TSDThe Swift Den
•Created by Timo Martinson on 1/5/2024 in #swift-development
how to randomly display data in SwiftUI?
augment the cards with a
sort
field which is assigned Float.random(in:)
, then sort the array by that field4 replies
TSDThe Swift Den
•Created by kat on 11/24/2023 in #swift-development
Button not showing
rather than using
UIScreen.bounds
, you should use an HStack
with two Spacer
to do the centring9 replies
TSDThe Swift Den
•Created by zeljko on 11/21/2023 in #swift-development
SwiftData nested Lists
is there a question?
4 replies
TSDThe Swift Den
•Created by deme on 11/21/2023 in #swift-development
Centering in Swift
using
Spacer
inside Form
seems to work?16 replies
TSDThe Swift Den
•Created by deme on 11/21/2023 in #swift-development
Centering in Swift
simplest way is a
VStack
with Spacer
16 replies
TSDThe Swift Den
•Created by evolv on 10/7/2023 in #swift-development
Uknown class view Controller
is it possible the file isn't added to the target?
3 replies
TSDThe Swift Den
•Created by louis1001 on 9/27/2023 in #swift-development
NSAttributedString from html is not loading resources
I'm not sure that using css to inject fonts not installed on the device is an intended use-case of NSAttributedString
https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/AttributedStrings/Tasks/CreatingAttributedStrings.html#//apple_ref/doc/uid/20000714-BBCCGGCC
The methods translate HTML as well as possible into structures of the Cocoa text system, but the Application Kit does not provide complete, true rendering of arbitrary HTML
5 replies
TSDThe Swift Den
•Created by Pointer on 9/16/2023 in #swift-development
Error on one struct but not on the other
they are
init
arguments for the String
struct
type6 replies
TSDThe Swift Den
•Created by Pointer on 9/16/2023 in #swift-development
Error on one struct but not on the other
your syntax is invalid in Person2, you are assigning rather than declaring the type, so it wants an argument like
String(repeating: "Foo", count: 2)
6 replies
TSDThe Swift Den
•Created by basuke.suzuki on 8/17/2023 in #swift-development
What Swift language feature to achieve SwiftUI's `$` to return `Binding<Value>`?
4 replies