Post

Replies

Boosts

Views

Activity

Reply to make login button a NavigationLink
It seems you have an extra comma here: self.authenticationdidfail = false;, self.isshowingWarehouseView = true Replace with: self.authenticationdidfail = false; self.isshowingWarehouseView = true Note: names should be camelCase, as authenticationDidFail for better readability.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to deleting a forum question
I have a new use case. I want to delete to correct Forum bug ! I answer a post When the page updates, my answer does not show It does not show either in the tag page (in the number of replies and last update time) So I repeat the answer And now both show !!! I would like to delete the second one, which is redundant (and made me loose some time). I filed a bug report: Sep 29, 2021 at 10:20 AM – FB9663136
Oct ’21
Reply to UDID number
No, it should be kept secret. This is a privacy issue mainly. Read this: h t t p s : / / searchsecurity.techtarget.com/answer/What-risk-does-the-Apple-UDID-security-leak-pose-to-iOS-users
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’21
Reply to how can i get two wheel picker in one row display correctly
You need to clip the Pickers and use GeometryReader: struct ContentView: View { @State var min:Int = 0 @State var sec:Int = 0 var body: some View { Form { Section{ GeometryReader { geometry in HStack{ Picker("min", selection: $min){ Text("0") .tag(0) Text("1") .tag(1) Text("2") .tag(2) Text("3") .tag(3) } .pickerStyle(.wheel) .frame(width: geometry.size.width / 2, height: 80) .clipped() Picker("sec", selection: $sec){ Text("0") .tag(0) Text("1") .tag(1) Text("2") .tag(2) Text("3") .tag(3) } .pickerStyle(.wheel) .frame(width: geometry.size.width / 2, height: 80) .clipped() } .frame(height:60) } } } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to Automatically add device frames to screenshots
What do you mean by device frame ? a simple border ? If you have images in Pages, that can be done automatically: https://support.apple.com/en-gb/guide/pages/tan14a575e90/mac You could also create your own app to do it automatically. There are also a lot of free photo editors on Mac you could use for it. The device itself ? I need this too for documentation. I just do a screen capture of simulator. I open the simulator on a blank page not to be disturbed by background. Nevertheless, there is a shadow effect. So may be the simplest is: create the frame with screen capture of simulator edit it to erase the shadow effect use to paste each image inside Yes that is a bit tedious, notably if you have multiple devices, multiple languages… But translations the text that goes with images is fastidious too…
Oct ’21
Reply to Add Boolean in CoreData
What did you try ? What doesn't work ? You should create a Boolean attribute and save theWitch.isOn value inside. If you need some tutorial, read this: h t t p s : / / betterprogramming.pub/core-data-basics-swift-persistent-storage-ba3185fe7061
Topic: App & System Services SubTopic: iCloud Tags:
Oct ’21
Reply to P: Your enrollment in the Apple Developer Program could not be completed at this time.
Why do you think it is related to your DUNS number ? Did you receive a mail from D&B, such as: We have confirmed your company information as follows. This information should be reflected in the Apple/D&B system. If you are not able to complete the registration with this information, please contact Apple by following the link: https://developer.apple.com/contact/phone
Oct ’21
Reply to make login button a NavigationLink
It seems you have an extra comma here: self.authenticationdidfail = false;, self.isshowingWarehouseView = true Replace with: self.authenticationdidfail = false; self.isshowingWarehouseView = true Note: names should be camelCase, as authenticationDidFail for better readability.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to link login screen to home view
Isn't now duplicate with the other more recent post, or a different question ? You should close this one and look at answers on the other.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to macos deployment target set to 11.0, but still getting pre-11.0 availability compiler warnings
See this thread: https://developer.apple.com/forums/thread/689517?answerId=687001022#687001022 It is the same for MacOS app: you have 2 places with deployment info and Deployment Target, which can be different (here one is 10.13 the other 11.3). Set them both to the correct value.
Replies
Boosts
Views
Activity
Oct ’21
Reply to macos deployment target set to 11.0, but still getting pre-11.0 availability compiler warnings
removed my duplicate
Replies
Boosts
Views
Activity
Oct ’21
Reply to deleting a forum question
I have a new use case. I want to delete to correct Forum bug ! I answer a post When the page updates, my answer does not show It does not show either in the tag page (in the number of replies and last update time) So I repeat the answer And now both show !!! I would like to delete the second one, which is redundant (and made me loose some time). I filed a bug report: Sep 29, 2021 at 10:20 AM – FB9663136
Replies
Boosts
Views
Activity
Oct ’21
Reply to UDID number
No, it should be kept secret. This is a privacy issue mainly. Read this: h t t p s : / / searchsecurity.techtarget.com/answer/What-risk-does-the-Apple-UDID-security-leak-pose-to-iOS-users
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to The new UIButton.Configuration Api no subtle color transition
I lose the title fade transition When should this transition occur ? When you tap the button ? Did you consider using titleTextAttributesTransformer ? It is a bit complex to use, here is a tutorial: h t t p s : / / sarunw.com/posts/how-to-mark-custom-button-style-with-uibuttonconfiguration/
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to how can i get two wheel picker in one row display correctly
You need to clip the Pickers and use GeometryReader: struct ContentView: View { @State var min:Int = 0 @State var sec:Int = 0 var body: some View { Form { Section{ GeometryReader { geometry in HStack{ Picker("min", selection: $min){ Text("0") .tag(0) Text("1") .tag(1) Text("2") .tag(2) Text("3") .tag(3) } .pickerStyle(.wheel) .frame(width: geometry.size.width / 2, height: 80) .clipped() Picker("sec", selection: $sec){ Text("0") .tag(0) Text("1") .tag(1) Text("2") .tag(2) Text("3") .tag(3) } .pickerStyle(.wheel) .frame(width: geometry.size.width / 2, height: 80) .clipped() } .frame(height:60) } } } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to I
And the question is… ?????
Replies
Boosts
Views
Activity
Oct ’21
Reply to Automatically add device frames to screenshots
What do you mean by device frame ? a simple border ? If you have images in Pages, that can be done automatically: https://support.apple.com/en-gb/guide/pages/tan14a575e90/mac You could also create your own app to do it automatically. There are also a lot of free photo editors on Mac you could use for it. The device itself ? I need this too for documentation. I just do a screen capture of simulator. I open the simulator on a blank page not to be disturbed by background. Nevertheless, there is a shadow effect. So may be the simplest is: create the frame with screen capture of simulator edit it to erase the shadow effect use to paste each image inside Yes that is a bit tedious, notably if you have multiple devices, multiple languages… But translations the text that goes with images is fastidious too…
Replies
Boosts
Views
Activity
Oct ’21
Reply to Add Boolean in CoreData
What did you try ? What doesn't work ? You should create a Boolean attribute and save theWitch.isOn value inside. If you need some tutorial, read this: h t t p s : / / betterprogramming.pub/core-data-basics-swift-persistent-storage-ba3185fe7061
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to A bug? Can not record video with audio more than 15 seconds with AVFoundation
Could you check in your code the value of maxRecordedDuration for AVCaptureOutput ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Advertising screen in Apple Watch
IMO there should not be a problem. But it will not be paid ads I guess.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to P: Your enrollment in the Apple Developer Program could not be completed at this time.
Why do you think it is related to your DUNS number ? Did you receive a mail from D&B, such as: We have confirmed your company information as follows. This information should be reflected in the Apple/D&B system. If you are not able to complete the registration with this information, please contact Apple by following the link: https://developer.apple.com/contact/phone
Replies
Boosts
Views
Activity
Oct ’21
Reply to Why Do We Need to Specify Schedule?
At the time of call, you are probably already on main thread, so nothing changes. That's important in case you have changed thread before. May read this detailed tutorial: h t t p s : / / trycombine.com/posts/subscribe-on-receive-on/
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21