Post

Replies

Boosts

Views

Activity

Reply to Apple Security vs Malware/Spyware
The perfect filter does not exist. Even big companies have been compromised (I read that Xcode itself had been compromised in China 5 or 6 years ago). What I would do (and try to do myself): be cautious on the apps you download organise rolling backup of your important stuff (at least on 2 different physical support, where you alternate successive backups) apply a very strict discipline never to open a mail attachement if you are not 120% sure it is OK update OS to the last available security patches if one day you fear a machine has been compromised, immediately disconnect from the network and quarantine.
Topic: App & System Services SubTopic: Hardware Tags:
May ’21
Reply to SceneView SwiftUI
Did you try yo use the Debug View Hierarchy in Xcode during execution, to see exactly what the hierarchy of views is ? To access the tool, it is the 7th icon - shaped as a vertical rect with 2 smaller rects on its sides - from the left on the frame above the console) You may find an intermediary view that you have to make transparent. I tried rapidly, and found several layers (one is dropshadowview)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’21
Reply to How to change the style of the datePicker component ?
You have several existing styles: CompactDatePickerStyle DefaultDatePickerStyle FieldDatePickerStyle GraphicalDatePickerStyle StepperFieldDatePickerStyle WheelDatePickerStyle you apply the modifier to the datePicker .datePickerStyle(WheelDatePickerStyle()) How do you need to customise ? If none of those above styles, you have to create your own picker.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’21
Reply to How to change the style of the datePicker component ?
You need to precise your spec a little. How many days do you want to present ? Only the selected month ? One way to do : create a scrollView each day is a 2 lines label that you set with the correct day name and number enable user interaction for each label, so that user can tap it Or you can subclass UISegmentedControl. Creating images as   lun     1 class PickerSegmentedControl: UISegmentedControl { var allImages : [UIImage] = [] // To be set before calling. Must be the right size func commonInit() { let numberOfDays = self.numberOfSegments for i in 0..numberOfDays where i allImages.count { self.setImage(allImages[i], forSegmentAt: i) } } override init(frame: CGRect) { super.init(frame: frame) commonInit() } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) commonInit() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’21
Reply to Why are forum posts locked after two months of inactivity?
Yes, it is annoying. That's not the case on SO… But a problem is that very few close the thread once they've got the answer they needed. May be a reason. I would advise you to file a bug (please report FB ref) and then… to close the thread.
Replies
Boosts
Views
Activity
May ’21
Reply to Data not passing correctly - SwiftUI, CoreData
So could you add complete code replicating the problem, so that we can test ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to Xcode build too slow especially 'Merge swift module (x86_64)
I would first do an option-Clean Build Folder and see what happens. Could you tell what is the longest task reported in the log (could you copy the complete log ?)
Replies
Boosts
Views
Activity
May ’21
Reply to Error Message using AVFoundation
If code works OK, that's the most important. From time to time, Xcode sends messages which should be ignored (they may be for debug use). Annoying but no real concern. However, you'd better file a bug report, in case.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to Apple Security vs Malware/Spyware
The perfect filter does not exist. Even big companies have been compromised (I read that Xcode itself had been compromised in China 5 or 6 years ago). What I would do (and try to do myself): be cautious on the apps you download organise rolling backup of your important stuff (at least on 2 different physical support, where you alternate successive backups) apply a very strict discipline never to open a mail attachement if you are not 120% sure it is OK update OS to the last available security patches if one day you fear a machine has been compromised, immediately disconnect from the network and quarantine.
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to How fix the package "%@"is missing or invalid
I have Downloaded update thrice time Downloaded what ?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to 11.4 Beta Refusing to Shut Down?
That may be a beta problem. Did you file a bug report ? Then wait for 11.4 release and just don't shut down, just close the Mac screen to sleep (ctrl-shift-Power buttkeyn).
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to SceneView SwiftUI
Did you try yo use the Debug View Hierarchy in Xcode during execution, to see exactly what the hierarchy of views is ? To access the tool, it is the 7th icon - shaped as a vertical rect with 2 smaller rects on its sides - from the left on the frame above the console) You may find an intermediary view that you have to make transparent. I tried rapidly, and found several layers (one is dropshadowview)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to Why are forum posts locked after two months of inactivity?
Note that you can also set the bell, to be notified as soon there is a new post in the thread.
Replies
Boosts
Views
Activity
May ’21
Reply to Sort is swift doubles the number of entries in array
For those who spent some time looking at your problem, could you tell what the 'rogue line' was ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to How to change the style of the datePicker component ?
You have several existing styles: CompactDatePickerStyle DefaultDatePickerStyle FieldDatePickerStyle GraphicalDatePickerStyle StepperFieldDatePickerStyle WheelDatePickerStyle you apply the modifier to the datePicker .datePickerStyle(WheelDatePickerStyle()) How do you need to customise ? If none of those above styles, you have to create your own picker.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to How to change the style of the datePicker component ?
You need to precise your spec a little. How many days do you want to present ? Only the selected month ? One way to do : create a scrollView each day is a 2 lines label that you set with the correct day name and number enable user interaction for each label, so that user can tap it Or you can subclass UISegmentedControl. Creating images as   lun     1 class PickerSegmentedControl: UISegmentedControl { var allImages : [UIImage] = [] // To be set before calling. Must be the right size func commonInit() { let numberOfDays = self.numberOfSegments for i in 0..numberOfDays where i allImages.count { self.setImage(allImages[i], forSegmentAt: i) } } override init(frame: CGRect) { super.init(frame: frame) commonInit() } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) commonInit() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to Sometimes the DTD file of info.plist xml is giving me XML parsing error
Could you inspect the BufferedInputStream, to see what's in it ?
Replies
Boosts
Views
Activity
May ’21
Reply to Xcode Personal team certificates status says not in keychain
Go to Xcode Preferences Accounts Manage certificates Then you can ask to create a new.
Replies
Boosts
Views
Activity
May ’21
Reply to Corner Radius of macOS app
What are the types of images ? They should be png. You should also better download a release version of MacOS.
Replies
Boosts
Views
Activity
May ’21