Posts

Post not yet marked as solved
4 Replies
4.7k Views
I'm leaning to code there for i made up my own Project so i learn a veriaty of stuff along doing that. My next step is something like an in App on device database. I know so far it has something to do with core data . I'd like some tipps and tricks maybe and suggestions where i can find waht I'm looking for I dont now the specific terminology maybe .So a quick rundown what i have in mind.It's an App to store character sheets for roleplaying games. In this shoulde be stored like more then one charcter at once like up to 100 or so I doubt this limit will ever be reached but who knows. Each Character has 11 attributes und some othere values that are calculated out of these attribute(all interger). Also each character has a set of skills ( physikal/mental/speech) that can easy reach like 50 entries combined(set of strings and integers). Then you have stuff that could augment or decrease values from your attributes stats. Not to forget that you have also like gear and vehicle and other stuff that needs to be stored and access along the usage of your charcter and the app.So is this possible with only swift? Do I create like a file for each charcter ? Can the Appuser input most of the stuff on his own or do i give him options he just selects or is there no limitation and its just an UI thing i can/could provide? And can i access and store like a picture if the user wants to?
Posted Last updated
.
Post marked as solved
11 Replies
2.2k Views
So I was coding so i get to learn Swift 5 and i want to make a TabView with multible Tabs.Icodedt them everything went fine and I noticed i need one or two more so I added the code for them and then XCode tells me that error code "Argument passed to call that makes no arguments". As soon as I delete my lines the error disappears.In Line 9 he tells me the error and underlines the T from .tabItem I only added line 33 to 36.import SwiftUI struct ContentView: View { var body: some View { TabView { CharakterView().tabItem { Image(systemName: Constant.TabBarImageName.tabBar4) Text("Charakter") } AttributView().tabItem { Image(systemName: Constant.TabBarImageName.tabBar1) Text("Attribute") } FertigkeitenView().tabItem { Image(systemName: Constant.TabBarImageName.tabBar2) Text("Fertigkeiten") } VorNachView().tabItem { Image(systemName: Constant.TabBarImageName.tabBar1) Text("Vor/Nachteile") } ConnectionView().tabItem { Image(systemName: Constant.TabBarImageName.tabBar3) Text("Connections") } BioCyberView().tabItem { Image(systemName: Constant.TabBarImageName.tabBar1) Text("Bio/Cyberware") } ZauberView().tabItem { Image(systemName: Constant.TabBarImageName.tabBar1) Text("Zauber") } AusruestungView().tabItem { Image(systemName: Constant.TabBarImageName.tabBar1) Text("Ausrüstung") } VehicleView().tabItem { Image(systemName: Constant.TabBarImageName.tabBar1) Text("Vehicle") } KiView().tabItem { Image(systemName: Constant.TabBarImageName.tabBar0) Text("Ki-Kräfte") } KomplexView().tabItem { Image(systemName: Constant.TabBarImageName.tabBar0) Text("Komplexe Form") } } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView().previewLayout(.fixed(width: 414, height: 896)) } }
Posted Last updated
.