Post

Replies

Boosts

Views

Activity

Text Max Character Number SwiftUI
Hi, Some times long text damage the design of views it might go to a second row and increase view height and damage the overall design, so how to solve this issue, is there a way to set a Max Characters number for Text and TextField views in SwiftUI ? and maybe show few dots as used in some designs ? Kind Regards
1
0
882
Sep ’24
Using truncationMode
Hi, The example that Apple shows in link below doesn't show how truncationMode works, because the text get truncated anyway when its length it more than frame height so what's the use of truncationMode ? https://developer.apple.com/documentation/swiftui/view/truncationmode(_:) -- Kind Regards
1
0
319
Sep ’24
SwiftUI List hidden line separator not working
Hi, I have the below code as you can see the list doesn't hide its line separator, so is it a bug ? is there any work around ? @State var flag: Bool = false var myList: [String] = ["Hello", "World", "SwiftUI"] var body: some View { VStack(alignment: .leading) { List (myList, id: \.self) { list in Text(list) } .listRowSeparator(.hidden) .listStyle(.plain) } .overlay( RoundedRectangle(cornerRadius: 10) .stroke(sysSecondary.opacity(0.4), lineWidth: 1) ) .frame(width: 220, height:260) .background(.white) .clipShape (RoundedRectangle (cornerRadius: 10)) } }
Topic: UI Frameworks SubTopic: SwiftUI
1
0
425
Sep ’24
Customizing ToolBar of SplitView
Hi, Os to possible to customize the icon, color, positioning of the SplitView ToolBar that shows at details view, the menu blue icon. add buttons to it ? change its color, icon, size ? position like adding paddings ? Kind Regards
1
0
623
Oct ’24
Using Generics with SwiftData Models and Bindable
Hi, When passing a SwftData Module to a view that receives it in a @Binadable property variable I get an error that it doesn't conform to Observation, I don't know how to solve this issue, even adding @Observable type to the generic in the structure definition won't solve it, any suggestions ? Kind Regards
1
0
518
Nov ’24
SwifttData Record Update
Hi When connecting a SwiftData module property to a SwiftUI view such as a text field and the field changes by user the property get updated in the SwiftData database, now suppose I want to run a validation code or delay updates to Database till use click a submit button how to do that ? delay those auto updates if we can name it ? Kind Regards Code Example import SwiftUI import SwiftData struct GListSel2: View { @Bindable var patient: Patient var body: some View { HStack { TextField("Gender", text: $patient.gender) } } }
1
0
361
Nov ’24
Text Max Character Number SwiftUI
Hi, Some times long text damage the design of views it might go to a second row and increase view height and damage the overall design, so how to solve this issue, is there a way to set a Max Characters number for Text and TextField views in SwiftUI ? and maybe show few dots as used in some designs ? Kind Regards
Replies
1
Boosts
0
Views
882
Activity
Sep ’24
Using truncationMode
Hi, The example that Apple shows in link below doesn't show how truncationMode works, because the text get truncated anyway when its length it more than frame height so what's the use of truncationMode ? https://developer.apple.com/documentation/swiftui/view/truncationmode(_:) -- Kind Regards
Replies
1
Boosts
0
Views
319
Activity
Sep ’24
SwiftUI List hidden line separator not working
Hi, I have the below code as you can see the list doesn't hide its line separator, so is it a bug ? is there any work around ? @State var flag: Bool = false var myList: [String] = ["Hello", "World", "SwiftUI"] var body: some View { VStack(alignment: .leading) { List (myList, id: \.self) { list in Text(list) } .listRowSeparator(.hidden) .listStyle(.plain) } .overlay( RoundedRectangle(cornerRadius: 10) .stroke(sysSecondary.opacity(0.4), lineWidth: 1) ) .frame(width: 220, height:260) .background(.white) .clipShape (RoundedRectangle (cornerRadius: 10)) } }
Topic: UI Frameworks SubTopic: SwiftUI
Replies
1
Boosts
0
Views
425
Activity
Sep ’24
Manually Opening SideBar in SplitView as Popover
Hi, If Im in detailsOnly mode in SplitView how to manually open the SideBar as popover same as behavior as default rectangle menu icon at top of Details View. Kind Regards
Replies
1
Boosts
0
Views
314
Activity
Oct ’24
Customizing ToolBar of SplitView
Hi, Os to possible to customize the icon, color, positioning of the SplitView ToolBar that shows at details view, the menu blue icon. add buttons to it ? change its color, icon, size ? position like adding paddings ? Kind Regards
Replies
1
Boosts
0
Views
623
Activity
Oct ’24
Using Generics with SwiftData Models and Bindable
Hi, When passing a SwftData Module to a view that receives it in a @Binadable property variable I get an error that it doesn't conform to Observation, I don't know how to solve this issue, even adding @Observable type to the generic in the structure definition won't solve it, any suggestions ? Kind Regards
Replies
1
Boosts
0
Views
518
Activity
Nov ’24
SwifttData Record Update
Hi When connecting a SwiftData module property to a SwiftUI view such as a text field and the field changes by user the property get updated in the SwiftData database, now suppose I want to run a validation code or delay updates to Database till use click a submit button how to do that ? delay those auto updates if we can name it ? Kind Regards Code Example import SwiftUI import SwiftData struct GListSel2: View { @Bindable var patient: Patient var body: some View { HStack { TextField("Gender", text: $patient.gender) } } }
Replies
1
Boosts
0
Views
361
Activity
Nov ’24
What's The Difference Swift Packages Frameworks ?
Hi, What's the difference Swift Packages Frameworks ? for me I see them the same as not an expert developer ? Which should I use ?for example for a SwiftUI UI Kit to be distributed online for sale ? Kind Regards
Replies
1
Boosts
0
Views
215
Activity
Jan ’25
Fgima Design to SiwftUI PlugIn from Apple
Hi, It would be sure if Apple creates a Fgima plug in to convert designs to SwiftUI, no one can do it like Apple and it would be SUPER and super time saving ! -- Kind Regards
Topic: Design SubTopic: General
Replies
1
Boosts
0
Views
137
Activity
May ’25
Apps Naming
Hi App names on App Store is it like domain names ? For example when an App named things I can’t publish an App with same name ? And if yes how to check about available names and reserve them ? kindest Regards
Replies
0
Boosts
0
Views
510
Activity
Jan ’22
Font Installing
Hi can my App now install fonts system wide in iOS and iPadOS ? Is there any helpful links ? Kindest Regards
Topic: Design SubTopic: General Tags:
Replies
0
Boosts
0
Views
956
Activity
Jan ’22
Xcode Compatibility Error Message
Hi Im trying to run my Xcode App on physical iPad but getting the attached screen message, this happened recently before few months I didn't get it. My iPad is 9.7" Pro with iPadOS 15.6. Mac is NBP 2015 with macOS 11.5.1 and Xcode Version 13.2.1. is there a fix ?
Replies
0
Boosts
0
Views
410
Activity
Aug ’22
Command - Click on Canvas
Hi, In Xcode 15 is command click on an item in the preview canvas feature removed ? it doesn't work for me ? Kindest Regards
Replies
0
Boosts
0
Views
492
Activity
Sep ’23
Using Data or View in NavigationStack
Hi, Is it recommended to use data and SwiftUI controls inside the NavigationStack or to use views as before ? I think views is easier to maintain or Im missing something ? cause I hear that the new way is to use data directly ? Kindest Regards
Replies
0
Boosts
0
Views
284
Activity
Dec ’23
Are Fitness features exists in HealthKit ?
Hi, The fitness features such as distance moved, steps, calories burned is it in HealthKit or in a different kit ? couldn't find any API in HealthKit ? Also for example how can Apple Watch distinguish that this amount of steps was walked and not moved by a slow car or a scoter for example ? Kindest Regards
Replies
0
Boosts
0
Views
598
Activity
Dec ’23