Hello!
I am trying to install the iOS simulator on Xcode 15 but I get an error message telling me I am not signed in to AppleConnect every time. I am aware that AppleConnect is Apple's interal employee SSO, but I am not an employee or contractor.
Does anyone know how to get around this message? I have searched my Mac for files and directories that could have lead to the issue, and signed in and out of my Apple ID to no avail.
I greatly appricate any help! Thank you.
See the error here:
The operation couldn’t be completed. (DVTNFASupport.AppleConnectError error 1.)
Domain: DVTNFASupport.AppleConnectError
Code: 1
User Info: {
DVTErrorCreationDateKey = "2023-06-08 00:45:07 +0000";
}
--
System Information
macOS Version 14.0 (Build 23A5257q)
Xcode 15.0 (22181.17) (Build 15A5160n)
Timestamp: 2023-06-07T18:45:07-06:00
Post
Replies
Boosts
Views
Activity
Hello!
I'm a pretty new developer and I'm having trouble figuring out how you are meant to filter a list based on what tokens are in the search field in SwiftUI. If anyone could provide some sort of example, I would really appreciate it!
Best, Drake
Hello! I'm a very new developer and I was looking for an example of how you use an AR Quick Look preview in SwiftUI, I really appreciate the help!
Hello,
I was wondering if it was possible to make a Table using the SwiftUI Table that acts like the finder "as List" view. I'm mostly looking for a way to get navigation in the Table. If it's not possible, what are some good alternitives?
Thanks!
Hello! I was wondering how you would have three SwiftUI toggles where only one could be on at a time (and one has to be on at all times) so when another one is selected, the others aren't. I really appreciate the help! Thanks.
Hello! I was wondering if there was a way to make a NavigationLink in SwiftUI show up with a cusoum look that's not just the defaualt macOS button. (See attached photos). Thanks!
Hi! I would like to take in json data from a url that I already have set up, using something like this. Thanks!
func load<T: Decodable>(_ filename: String) -> T {
let data: Data
guard let file = Bundle.main.url(forResource: filename, withExtension: nil)
else {
fatalError("Couldn't find \(filename) in main bundle.")
}
do {
data = try Data(contentsOf: file)
} catch {
fatalError("Couldn't load \(filename) from main bundle:\n\(error)")
}
do {
let decoder = JSONDecoder()
return try decoder.decode(T.self, from: data)
} catch {
fatalError("Couldn't parse \(filename) as \(T.self):\n\(error)")
}
}
Hi! I'm having an issue where my sidebar isn't showing my NavigationView's how I wanted them to be displayed (See screenshots). I would like if it could take up the whole second panel, any help would be greatly appreciated, thanks!
import SwiftUI
struct SidebarView: View {
var body: some View {
NavigationView {
List {
NavigationLink(destination: ExploreView()) {
Label("Explore", systemImage: "rectangle.3.group")
}
NavigationLink(destination: ListView()) {
Label("Devices", systemImage: "list.bullet.below.rectangle")
}
}
.listStyle(.sidebar)
.navigationTitle("Orchard")
ExploreView()
}
}
}
struct SidebarView_Previews: PreviewProvider {
static var previews: some View {
SidebarView()
.environmentObject(ModelData())
.previewInterfaceOrientation(.landscapeLeft)
}
}
Hello! I'm having an issue where my SwiftUI list changes into some different kind of list when I move it into a new view (see screenshots). How would I make it so it stays the same in both views?
(The view I want)
import SwiftUI
struct SheetListView: View {
@State private var showGreeting = true
var body: some View {
List {
HStack {
Label("Expert mode", systemImage: "list.bullet.rectangle.portrait")
.font(.title2)
Image(systemName: "questionmark.circle")
.foregroundColor(.gray)
Spacer()
Toggle("Expert Mode", isOn: $showGreeting)
.toggleStyle(.switch)
.labelsHidden()
}
Section(header: Text("Extras")) {
Label("FAQ", systemImage: "bubble.left.and.exclamationmark.bubble.right")
.font(.title2)
Label("Meet the maker", systemImage: "hand.wave")
.font(.title2)
Label("Tips", systemImage: "dollarsign.square")
.font(.title2)
Label("Credits", systemImage: "person.2")
.font(.title2)
}
Section(header: Text("Contact")) {
Label("Contact me", systemImage: "envelope")
.font(.title2)
Label("Report a bug", systemImage: "ant")
.font(.title2)
}
}
}
}
struct SheetListView_Previews: PreviewProvider {
static var previews: some View {
SheetListView()
}
}
(The view I get)
import SwiftUI
struct SheetView: View {
@Environment(\.dismiss) var dismiss
var body: some View {
NavigationView {
VStack {
SheetListView()
Spacer()
HStack {
Text("App version 0.1 (DEV)")
.foregroundColor(.gray)
}
.toolbar {
Button("Done") {
dismiss()
}
.font(.headline)
.padding()
}
}
.background(Color(.systemGroupedBackground))
}
}
}
struct SheetView_Previews: PreviewProvider {
static var previews: some View {
SheetView()
}
}
Hi! I'm very new to swift and I was having an issue with using data from a data model.
struct Orchard: Identifiable {
var id = UUID()
var title: String
var category: String
var year: String
var itemID: Int
var imageName: String
var bannerName: String
}
let orchardData: [Orchard] = [
Orchard(title: "iPhone 12", category: "iPhone", year: "2020", itemID: 1001, imageName: "iphone_12", bannerName: "iphone_12_wallpaper"),
Orchard(title: "iPhone 12 Pro", category: "iPhone", year: "2020", itemID: 1002, imageName: "iphone_12_pro", bannerName: "iphone_12_pro_wallpaper"),
Orchard(title: "iPhone 11", category: "iPhone", year: "2019", itemID: 1003, imageName: "iphone_11", bannerName: "iphone_11_wallpaper"),
Orchard(title: "iPhone 11 Pro", category: "iPhone", year: "2019", itemID: 1004, imageName: "iphone_11_pro", bannerName: "iphone_11_pro_wallpaper"),
Orchard(title: "iPhone XS", category: "iPhone", year: "2018", itemID: 1005, imageName: "iphone_xs", bannerName: "iphone_xs_wallpaper"),
Orchard(title: "iPhone SE 2nd Gen", category: "iPhone", year: "2020", itemID: 1006, imageName: "iphone_8", bannerName: "iphone_se_2_wallpaper")
]
I get the error "Global 'var' declaration requires an initializer expression or an explicitly stated getter"
Any help would be greatly appreciated, thanks!
Hello, I’m having some issues with verifying the email for the Apple ASW online portal. It sends me the verification email and I click the link on the inside to verify my email but the ASW site just says “Page Not Found”. Any help would be greatly appreciated.