Posts

Post not yet marked as solved
0 Replies
137 Views
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
Posted Last updated
.
Post not yet marked as solved
2 Replies
175 Views
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" ) } }
Posted Last updated
.
Post not yet marked as solved
0 Replies
250 Views
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
Posted Last updated
.
Post marked as solved
1 Replies
537 Views
HiIs it possible to program Python in Xcode ? and haw about HTML, CSS, JavaScript ?--Kindest Regards
Posted Last updated
.
Post not yet marked as solved
23 Replies
6.6k Views
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 } }
Posted Last updated
.
Post not yet marked as solved
3 Replies
751 Views
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
Posted Last updated
.
Post marked as solved
7 Replies
273 Views
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
Posted Last updated
.
Post not yet marked as solved
6 Replies
2.4k Views
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
Posted Last updated
.
Post not yet marked as solved
0 Replies
154 Views
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
Posted Last updated
.
Post marked as solved
2 Replies
214 Views
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
Posted Last updated
.
Post marked as solved
2 Replies
1.1k Views
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
Posted Last updated
.
Post marked as solved
2 Replies
1.8k Views
HiWwhat's the difference between Frameworks and Swift Packages, both create reusable code that we can use in another programs or I'm wrong ?
Posted Last updated
.
Post not yet marked as solved
6 Replies
238 Views
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?
Posted Last updated
.
Post marked as solved
1 Replies
188 Views
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
Posted Last updated
.