Post

Replies

Boosts

Views

Activity

Reply to Unable to add new version for my app. Cant see the (+) button besides iOS app.
My issue: I needed to stop the review as I. realized there were issues in my build. My solution: Apps> myApp> Distribution > iOS App (left side panel) > Under Build ... Hover til you see the red minus sign. It will be in the right-hand of the screen, opposite of where your build number is. Click that. You should then be able to add your next update.
Oct ’24
Reply to SwiftUI ForEach on Core Data children list
@SteveRoberson, do you mind sharing a bit about how you made this response work? I'm trying to make this work for something I'm working through but running into issues. I think there's a bit of mystery for me in terms of what your property's were and how they related to this response? So what I'm trying to do is use a FetchRequest to handle a one-to-many object fro core data. So I have an account as a one (the parent), and notes as the many (the children). So really, one account will have many notes. And with this I'm trying to get the notes filtered by way of what their respective account is. To add a bit more complexity to this, some of these views are buried a few layers deep, so they need to have their arguments passed down through each other. Any insights would be appreciated. Thank you.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’22
Reply to I could really, really use some help with a concept that continues to hurt my head: Initializing.
The view that displays my list: import SwiftUI import CoreData struct DatabaseViewMain: View { @ObservedObject var refactoringAccount = RefactoringAccount.refactoringAccountSingleton var body: some View { VStack { //Creates the 'add account' button HStack { Spacer() NavigationLink { AddAccountContainer() } label: { SubHeaderViewIcon(subheaderIcon: "plus.square", subheaderIconColor: Color("EditButtonBlue")) } .padding() } //Creates the List view List { ForEach(refactoringAccount.savedAccounts) {account in NavigationLink { AccountDetailMain(accountBackEnd: account) } label: { DatabaseViewCell( accountNameFromCell: account.accountCompanyName, accountLastVisitedFromCell: account.accountCity, accountTotalFromCell: account.accountLastDateVisited) //Text(account.accountCompanyName) } .foregroundColor(.gray) } .onDelete(perform: refactoringAccount.deleteAccount) .onAppear(perform: refactoringAccount.fetchAccount) } .listStyle(PlainListStyle()) } .navigationBarHidden(true) } } The view that my mentor created: import SwiftUI import Combine import CoreData struct AddAccountContainer: View { @State var account: AccountBackEnd? func newAccount() -> AccountBackEnd { let context = RefactoringAccount.refactoringAccountSingleton.container.viewContext let newAccount = AccountBackEnd(context: context) return newAccount } var body: some View { VStack() { if let account = self.account { AddAccountView(accountBackEnd: account) } } .onAppear { if account == nil { account = newAccount() } } } } The View that I’d like to use: import SwiftUI import CoreData //View for user to add a new account with struct AddAccountView: View { @ObservedObject var accountBackEnd: AccountBackEnd @Environment(\.presentationMode) var presentationMode var body: some View { ScrollView { VStack { Group { MainAddHeaderView(mainTextField: "Account", iconField: "building") Spacer() .frame(height: 5) HStack { NavigationLink { CancelButton() } label: { MainHeaderViewBottomLeft() } Spacer() } } Button(action: { do { try accountBackEnd.managedObjectContext?.save() } catch { print("There was a problem saving: \(error)") } presentationMode.wrappedValue.dismiss() print("It exited") }) { LargeSaveButtonBlue(saveButtonLabel: "Save Changes") } OneHundredPointSpacer() //Exit LargeDeleteButton(deleteButtonLabel: "Delete Changes") OneHundredPointSpacer() } .navigationBarBackButtonHidden(true) .navigationBarHidden(true) } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’21
Reply to Unable to add new version for my app. Cant see the (+) button besides iOS app.
My issue: I needed to stop the review as I. realized there were issues in my build. My solution: Apps> myApp> Distribution > iOS App (left side panel) > Under Build ... Hover til you see the red minus sign. It will be in the right-hand of the screen, opposite of where your build number is. Click that. You should then be able to add your next update.
Replies
Boosts
Views
Activity
Oct ’24
Reply to SF Symbols usability on my app's website
So I will have screenshots on one of my sites sections. But then I’d also like to use the SF Symbols to indicate what those symbols are used for. So they’d be presented with an idea about how they’re used in the app. thoughts here?
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to SwiftUI ForEach on Core Data children list
@SteveRoberson, do you mind sharing a bit about how you made this response work? I'm trying to make this work for something I'm working through but running into issues. I think there's a bit of mystery for me in terms of what your property's were and how they related to this response? So what I'm trying to do is use a FetchRequest to handle a one-to-many object fro core data. So I have an account as a one (the parent), and notes as the many (the children). So really, one account will have many notes. And with this I'm trying to get the notes filtered by way of what their respective account is. To add a bit more complexity to this, some of these views are buried a few layers deep, so they need to have their arguments passed down through each other. Any insights would be appreciated. Thank you.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to I could really, really use some help with a concept that continues to hurt my head: Initializing.
The view that displays my list: import SwiftUI import CoreData struct DatabaseViewMain: View { @ObservedObject var refactoringAccount = RefactoringAccount.refactoringAccountSingleton var body: some View { VStack { //Creates the 'add account' button HStack { Spacer() NavigationLink { AddAccountContainer() } label: { SubHeaderViewIcon(subheaderIcon: "plus.square", subheaderIconColor: Color("EditButtonBlue")) } .padding() } //Creates the List view List { ForEach(refactoringAccount.savedAccounts) {account in NavigationLink { AccountDetailMain(accountBackEnd: account) } label: { DatabaseViewCell( accountNameFromCell: account.accountCompanyName, accountLastVisitedFromCell: account.accountCity, accountTotalFromCell: account.accountLastDateVisited) //Text(account.accountCompanyName) } .foregroundColor(.gray) } .onDelete(perform: refactoringAccount.deleteAccount) .onAppear(perform: refactoringAccount.fetchAccount) } .listStyle(PlainListStyle()) } .navigationBarHidden(true) } } The view that my mentor created: import SwiftUI import Combine import CoreData struct AddAccountContainer: View { @State var account: AccountBackEnd? func newAccount() -> AccountBackEnd { let context = RefactoringAccount.refactoringAccountSingleton.container.viewContext let newAccount = AccountBackEnd(context: context) return newAccount } var body: some View { VStack() { if let account = self.account { AddAccountView(accountBackEnd: account) } } .onAppear { if account == nil { account = newAccount() } } } } The View that I’d like to use: import SwiftUI import CoreData //View for user to add a new account with struct AddAccountView: View { @ObservedObject var accountBackEnd: AccountBackEnd @Environment(\.presentationMode) var presentationMode var body: some View { ScrollView { VStack { Group { MainAddHeaderView(mainTextField: "Account", iconField: "building") Spacer() .frame(height: 5) HStack { NavigationLink { CancelButton() } label: { MainHeaderViewBottomLeft() } Spacer() } } Button(action: { do { try accountBackEnd.managedObjectContext?.save() } catch { print("There was a problem saving: \(error)") } presentationMode.wrappedValue.dismiss() print("It exited") }) { LargeSaveButtonBlue(saveButtonLabel: "Save Changes") } OneHundredPointSpacer() //Exit LargeDeleteButton(deleteButtonLabel: "Delete Changes") OneHundredPointSpacer() } .navigationBarBackButtonHidden(true) .navigationBarHidden(true) } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21