Post not yet marked as solved
Hi ..
When creating new SwiftUI project in Xcode 12 Beta 2 the selection box for Core Data and iCloud is disabled ? why is that is it because it's beta or not supported by SwiftUI ?
Kindest Regards
Post not yet marked as solved
Hi ..
When I click the live preview button in a SwiftUI project nothing happens ?
Kindest Regards
Post not yet marked as solved
Hi
When creating new SwiftUI App we get the struct below in the ContentView.Swift file, but as I know sturct can't inherit or I missed something here ? and whats the word some means ? its not the struct name or the parent struct so whats its used for ?
struct ContentView: view {
ver body: some view {
Text ( "Hello World" )
}
}
Post not yet marked as solved
Hi
In struct ContentView_Previews the static var previews why it's acting like a function ? and why its calling the sturct ContentView () as if it was a function not a struct ?
Kindest Regards
HiIs it possible to program Python in Xcode ? and haw about HTML, CSS, JavaScript ?--Kindest Regards
Post not yet marked as solved
Hi ..Im working on CloudKit, I made new iOS project and added a CloudKit Capability, as well as a container, imported it in a View Controller and tried to save data as code below, but nothing is happeing and no data is being saved when I go to the dashboard ?@IBAction func addReport(_ sender: Any) {
let bugReport = CKRecord(recordType: "NewReport")
bugReport ["BugName"] = "Bug 1"
bugReport ["BugDisc"] = "Its a main bug"
let container = CKContainer.default()
let database = container.publicCloudDatabase
database.save(bugReport) {(savedRecords, error) in
}
}
Post not yet marked as solved
HiView Controller in Stoyroard has a First Responder & Exit sort of buttons or controls at the top, whats there used for ? and is there any examples for this usage or scenarios ?--Kindest Regards
HiI saw a strange sugeues I see first time, where the destination view controllers are like icons cause they are in another stody board, how this can be done in a story board not programatically same as in photo below ? and haw it can be done in code ?h ttps://www.dropbox.com/s/nvl857**3r6ijap/Screen%20Shot%202020-04-29%20at%2012.17.11%20AM.png?dl=0--Kindest Regards
Post not yet marked as solved
HiI dowloaded simulator 13.3 and I managed to remove its devices from window menu, but Im trying to remove the component from Xcode components but theres no delete option so from wheer I can delete it ?--Kindest Regards
Post not yet marked as solved
HiIn this quick demo the first line as I understand is enouch to change the image of file, why he needed to use the second line the one with CGPoint.zero ? it doesnt make sense to me ?--Kindest Regardsh ttps://www.youtube.com/watch?v=rnJxpuPyLNA
Hisuppose I want an attribute to hold a unique number auto generated for each record in an entity in core Data, is there something out of the box in core Data to use ?--Kindest Regards
Hihi is there a property to sent an attribute of an entity as unique that doesn't accept same value in two records ? And if yes an that be done when doing the modeling say like a check box ?--Kindest Regards
HiWwhat's the difference between Frameworks and Swift Packages, both create reusable code that we can use in another programs or I'm wrong ?
Post not yet marked as solved
Hihi if I have an Aap that supports Core Data & CloudKit, and the device we t offline, when it's back online data will sync automatically?
Hihi I'm developing a patient management system using Code Data App that supports CloudKit, I feel it's the best scena to use, my concern is if a user a doctor for example is editing a record while another staff delete this record, what's the design pattern here ? Locking the record ? Can that be done in Core Data CloudKit ?Another concern is, what if a record is deleted and because there's few seconds of delay in data sync another user might open that record or at least try to open it ? Or maybe he edited it when he was offline and then when going online that record was deleted ?There might be many other such cases but what I understand that new systems solves this issues in a better why ?--Kindest Regards