Post

Replies

Boosts

Views

Activity

Reply to List changing into a different mode in a different view
Your SheetView NavigationView is using the default style of .columns. You want .stack Add this modifier to the SheetView NavigationView: .navigationViewStyle(.stack) Like this: var body: some View { NavigationView { VStack { SheetListView() Spacer() HStack { Text("App version 0.1 (DEV)") .foregroundColor(.gray) } .toolbar { Button("Done") { dismiss() } .font(.headline) .padding() } } .background(Color(.systemGroupedBackground)) } .navigationViewStyle(.stack) /// **.stack** } Extra Hint: when pasting code to the forum, use "Paste and Match Style", to avoid the extra blank lines.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to Type of expression is ambiguous without more context
Your code is not valid, as your brackets { } do not match up correctly. Your struct "CalculatePaceView" is not a valid View, as it contains no "body". (The "body" in your code sample is entirely outside the "CalculatePaceView" struct.) I suggest you try separating out the View that you are using for the NavigationLink, and make it into a separate struct. This should clarify what you are trying to achieve, and may make the error more obvious.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to Type of expression is ambiguous without more context
Type of expression is ambiguous without more context Unfortunately, your question is also ambiguous without more context. Please can you post the whole code, not just a (cut-off) snippet? The whole of the View body would be a good start... ...then indicate which expression is causing the error. You should also consider answering (or closing) your other recent posts, where people have tried to help you: https://developer.apple.com/forums/thread/692237 https://developer.apple.com/forums/thread/688935 https://developer.apple.com/forums/thread/691390 If you are struggling to use the forum correctly, then ask for help with that... people will be happy to contribute.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to Cannot convert value of type '[Double]' to expected argument type 'Double'
"someValue" is expecting a type of "Double" So "SomeValue" and the other "SomeValue" must both be of type "Double" The error message suggests that one (or both) of them is not. If you include more code details, it will be possible to say exactly where the error lies.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to List changing into a different mode in a different view
Your SheetView NavigationView is using the default style of .columns. You want .stack Add this modifier to the SheetView NavigationView: .navigationViewStyle(.stack) Like this: var body: some View { NavigationView { VStack { SheetListView() Spacer() HStack { Text("App version 0.1 (DEV)") .foregroundColor(.gray) } .toolbar { Button("Done") { dismiss() } .font(.headline) .padding() } } .background(Color(.systemGroupedBackground)) } .navigationViewStyle(.stack) /// **.stack** } Extra Hint: when pasting code to the forum, use "Paste and Match Style", to avoid the extra blank lines.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Cannot convert value of type '[Double]' to expected argument type 'Double'
"NewTime" is an array (of something - you don't say what. "NewDistance" is... what... you don't say. Then you have: let calculatePace = (NewTime / NewDistance) ...where you divide an Array by something. That doesn't make sense.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Xcode 13 navigation bar title
Please share your code, so we can see what is going wrong.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Type of expression is ambiguous without more context
Your code is not valid, as your brackets { } do not match up correctly. Your struct "CalculatePaceView" is not a valid View, as it contains no "body". (The "body" in your code sample is entirely outside the "CalculatePaceView" struct.) I suggest you try separating out the View that you are using for the NavigationLink, and make it into a separate struct. This should clarify what you are trying to achieve, and may make the error more obvious.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Type of expression is ambiguous without more context
Type of expression is ambiguous without more context Unfortunately, your question is also ambiguous without more context. Please can you post the whole code, not just a (cut-off) snippet? The whole of the View body would be a good start... ...then indicate which expression is causing the error. You should also consider answering (or closing) your other recent posts, where people have tried to help you: https://developer.apple.com/forums/thread/692237 https://developer.apple.com/forums/thread/688935 https://developer.apple.com/forums/thread/691390 If you are struggling to use the forum correctly, then ask for help with that... people will be happy to contribute.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to SwiftUI Email message body - line or carriage return?
Did you try "\n"? As in: "Line 1\nLine 2\nLine 3" Or: "Time on: \(onTime)\nTime in: \(inTime)\nFuel on board: \(fuelRemaining)"
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Can I publish multiple app from a single apple developer account?
No. Apps published from your account are shown as belonging to your account. I would suggest that your clients need to take control of their own apps, which should be hosted on their own accounts. People from your company can then be added as Team members (with appropriate roles) of your client accounts.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Trigger TouchID in Simulator Xcode 13
Usually when someone asks this, they are looking at a Simulator which simulates a device with Face ID, not Touch ID. Just saying! When I simulate a device with Touch ID, I can see: Features > Touch ID
Replies
Boosts
Views
Activity
Oct ’21
Reply to NSImageView with corner radius and shadow
Hi @aviorrok, try putting your code in a code block, and use "Paste and Match Style", then it will be readable.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to NSImageView with corner radius and shadow
You have also failed to set: albumImage.wantsLayer = true
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to App name questions for Publishing on Store
If you change the Bundle ID, then that is a new app. If your new Bundle ID uses the same app name as the original Bundle ID app name, then that's a confilct. If you change the Bundle ID and the app name, then there is no conflict.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Apple Enrollment Requirements For Company
I haven't seen a definitive answer to this (from Apple, or elsewhere), but the website must exist. In the early stages of a project, it seems entirely reasonable that the website would be under construction, when the Apple Developer account is first created.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Invalid bundle ID for container.
When you initialize your CKContainer, are you using "default()", or are you passing it a bundle identifier? Can you share the code?
Replies
Boosts
Views
Activity
Oct ’21
Reply to How to know a device is available to use captureTextFromCamera API?
captureTextFromCamera requires that the device has Neural Engine support. You could test for this using MCLDevice ane()... ...which returns nil if no Apple Neural Engine exists.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21