Posts

Post not yet marked as solved
1 Replies
810 Views
i though smart invert on iOS would ignore UIImageView but I just tested it and it does not workis there a setting i need to set so that UIImageView be ignore in smart invert mode ?
Posted
by Franco.
Last updated
.
Post not yet marked as solved
11 Replies
971 Views
when I read the disclosureGroup documentation , I see struct DisclosureGroup<Label, Content> where Label : View, Content : View in the first part it says label, I dont understand why. I can put a string and it work, But if I put a label I get an error saying it requires that 'Label<Text, Image>' conform to 'StringProtocol' it get worse (for me :-) the second part say "where Label : View, Content : View" for me it says that label conform to view... ? I tried to put a view, it did not work either , with the same error if I use the "Jump to definition" of disclosure, I can see this   public init(@ViewBuilder content: @escaping () -> Content, @ViewBuilder label: () -> Label) then I am totally lost :-) in label I can see struct Label<Title, Icon> where Title : View, Icon : View :-) Title ... a view ? is there a documentation to help me read documentation :-)
Posted
by Franco.
Last updated
.
Post not yet marked as solved
0 Replies
446 Views
I am considering converting my app to SwiftUI  My app receive data via bluetooth every second in my BluetoothManager.  This data is then send via protocol - delegate to another object that do math and other modification to those data.  From there different data are send via protocol or notification to others object to be save to file, other to be send to CoreData , and some to be displayed  So lot's of data move but rarely to be displayed.  Because most of this transfert is between object and rarely view, I wonder which one is better EnvironmentObject or via Protocol and/or  notification  I did look briefly at combine, and I am not sure if I would be able to use that in that case.
Posted
by Franco.
Last updated
.
Post marked as solved
2 Replies
4.0k Views
I am trying to rewrite my app in SwiftUI. I used to need to add NSBluetoothPeripheralUsageDescription in the info.plist I dont remember how to do it. I dont see a Plus sign, and Right click does not off to add something ?
Posted
by Franco.
Last updated
.
Post not yet marked as solved
0 Replies
203 Views
When Xcode autocomplete, a popup appear with different choice. At the beginning of the line there is a colored letter. I think M is for Method but some I just can't figured out. where could I learn about those letter and the color coding they have. thank you
Posted
by Franco.
Last updated
.
Post not yet marked as solved
1 Replies
461 Views
4 month ago, I bought a 2010 Mac Pro, a monitor. it is limited to last year operating system Mojave. Now I can't upgrade Xcode to 11.5 because Catalina 10.5.2 is required. :-( Will Xcode 11.5 be ported to last years operating system ?
Posted
by Franco.
Last updated
.
Post not yet marked as solved
2 Replies
805 Views
My app will probably never be on the App Store but I used it as a way to learnFor now it is just for me but I hope to one day to put it open source.I have made an app that monitor my solar ebike, for many parameter and some calculated. I use it while a ride but also when the bike is parked and is charging. The bike is parked far from my appartement but I have an iPhone connected to it all the time.I would like to have an app on my iPhone to send a message to the iPhone on the bike to ask to send me the current data.I understand that it would not be a good thing to do because it would mean that app developper could change thing in the app remotely.So I though, What if this could only work between two devices with the same AppleID.I have absolutely no idea how to do thatpreferably in a way that is AppStore compliant and privacy correct.i could just send the data every 20 minutes, but i want to learn and also i would like to have more flexibility, for example, one day I would like to send a command to open the switch to the battery to stop the charging.If you have suggestion on how to proceed I would be very happy. :-)
Posted
by Franco.
Last updated
.
Post not yet marked as solved
5 Replies
2.1k Views
My app is look ok on iOS 12, on a iPhone X and iphone 6S.I move to iOS 13 beta on iphone 6S and an macbook air on Catalina with Xcode 11and the same auto-layout code do not seems to work anymoreAlso a UIPickerView with 2 components, does not show up at all. and many other problem. is it my app that is the problem or others have the same issue ?
Posted
by Franco.
Last updated
.
Post marked as solved
4 Replies
947 Views
Not sure it this is the right forumI want to debug my App while on my eBike. I can't bring my computer :-)I am communicating via bluetooth with a Cycle Analyst, and the bike need to be rolling to get live data :-)App works well with stationary bike but while rolling i get some strange data. So I have a lot's of debug printI can't seems to find the log file where they are written to.With Device and Simulator, I can see the log of a crash I had but not what I am looking for.I tried this solution but it did not work.https://stackoverflow.com/questions/9097424/logging-data-on-device-and-retrieving-the-logThe article also mentionedhttps://developer.apple.com/library/archive/qa/qa1747/_index.htmlBut I am not sure if there is a difference between NSLog and printHow could I proceed ?
Posted
by Franco.
Last updated
.
Post not yet marked as solved
1 Replies
623 Views
I have a few ViewController that do UI thing for setting up the App and preference but then all my app do is receive data from bluetooth and display itFrom what I understand, most of what I do could be donne in another queue, off the main queuei have viewless objects for those task My BluetoothManager - get data from bluetooth and format it in an array once i have a whole line of data My DataPreparation - get data from bluetoothManager, do some calculation and enter it in core data My FileManager - every few lignes received, log it into a file the data the user ask for in pref.Once DataPreparation has calculated everything, it send the data to an UIViewCollection to display itIn my collection view, I only update the visible cell because i receive data every second and I am trying to minimise the load here Yet, sometime, when I scroll, I feel the UI is frozen, not long but I don't like it.I am currently looking at doing the writing to file with DispatchQoS.background or maybe DispatchQoS.userInitiatedBut :-)is there away to dispatch more work or even a whole object into another thread.
Posted
by Franco.
Last updated
.
Post marked as solved
1 Replies
7.7k Views
Xcode is giving me this warningSkipping duplicate build file in Compile Sources build phaseand a path to my entity class declaration file (for CoreData)then (in target 'myAppName')in my XCDataModelD - when i select the entity , i choosed for codegen -&gt; Catergory/Extensionthen i created a Class with the same name as my entity.the warning was not there in the beginning and it was working, then2 things might have helped create this problem1- because i had error in my code with entity :-) i tried the menu Editor -&gt; Create NSManagedObject Subclass...then i decide to delete both of those generated files2- stll trying to resolve the other problem, I think i have might drag the class from my other project once and it did not work, dragged it again, then it showed up , look at it, and delete it from xcodebut in the finder, when i look in my project,there is only one file for this class ?i did the Product -&gt; Clean Build Folder(both without and with ALT key - but i think ALT is not necessary anymore)
Posted
by Franco.
Last updated
.
Post not yet marked as solved
3 Replies
2.1k Views
Currently, the first time he use the app, the user must go through 3 or 4 ViewController to setup everything . I think I have a way to Visually put everything in one ViewController. The user can have multiple setup and changing it make more sense to the user if it is all in one ViewController.This new ViewController would still segue to change some part for setting more complex thing but it will still have to handle everything.But :-)all that code in one ViewController will be too long and will have too many func for my tasteIt will be a nightmare to modify it.Is there a way to separate this code into multiple files- it does not seems right to have long line on sub class just to keep everything in separate file- I tried to look at Extension, and it does not seem to work well in this case.exemple, i user have some textfield to fill, could this part be into a separeted file that could Almost be reuse :-)
Posted
by Franco.
Last updated
.