Search results for

column

2,052 results found

Post

Replies

Boosts

Views

Activity

Reply to Driving NavigationSplitView with something other than List?
Since List is very versatile, I'm not sure why it cannot be used here. For example, the following works fine in iOS and iPadOS (by persisting the selection): import SwiftUI class Q708440NavigationModel: ObservableObject { @Published var selectedThingId: Thing? } struct Thing: Identifiable, Hashable { let id: UUID = UUID() let name: String } class ThingData: ObservableObject { @Published var things: [Thing] = [ Thing(name: One), Thing(name: Two), Thing(name: Three) ] } struct ThingDetail: View { let thing: Thing @EnvironmentObject var navigationModel: Q708440NavigationModel var body: some View { Text(Thing: (thing.name)) } } struct SomeOtherViewHere: View { var body: some View { Text(Some other view) } } @main struct Q708440App: App { @StateObject var navigationModel = Q708440NavigationModel() @StateObject var thingData = ThingData() var body: some Scene { WindowGroup { Q708440(things: $thingData.things) .environmentObject(navigationModel) } } } struct Q708440: View { @Binding var things: [Thing] @EnvironmentO
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22
Clarity on below queries with respect to App Store subscription
Is there any way to set common currency for all the Territory except India? Eg: We want to set $6.59 to all the countries & India INR 49/- All prices & currency list has 3 columns. Want to know whether the Year 1 & Year 2 proceeds are exclusion of all taxes & Apple commission? When we choose the primary currency in the US dollar, why again is the US dollar price getting changed in the confirmation page. Please find its relevant screenshots
1
0
747
Jul ’22
Reply to Exception SIGABRT encountered in App Store review
When I followed the procedure to symbolicate an external file by changing the .ips extension to .crash, adding an external device, viewing All Logs and dragging the .crash file from MacOS12.4 Finder to the LH column, a part of the log appear in the RH window but does not include any frame data. The last line is Crashed Thread: 0 Dispatch queue enabled. Right-clicking on the added file and selecting Re-Symbolicate Log results in nothing happening. If I click Done and open View All Logs again, the added file is not present. I presumed this was due to lack of debug symbols but from your comment this is not the case.
Topic: App & System Services SubTopic: General Tags:
Jul ’22
Reply to Missing argument for parameter 'images' in call
Thanks so much, your first works great for me... But, how can I do the next step ? When I tapped on Landschaften that will be shows me Landschaften... That's nice. How can I do it for Maritimes? When I Tapped on Maritimes then I will that shows me Maritimes images... Can I drop more NavigationLinks in ContentView ? Have many Thanks ;) import SwiftUI struct ContentView: View { var columns = [GridItem(.adaptive(minimum: 160), spacing: 5)] var body: some View { NavigationView { ScrollView { LazyVGrid(columns: columns) { ForEach(ImagesList, id: .id) { images in NavigationLink { LandView() } label: { ImageCard(images: images) } } } .padding(10) } .navigationBarTitle(Text(Übersicht)) } .navigationViewStyle(StackNavigationViewStyle()) } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’22
Missing argument for parameter 'images' in call
Dear All Hope some one can help me... Xcode Shows me 4 Elements to fix it... I will that the user tapped on one Card and goes to that Category. What is my fails ? I know that I have struggle whit the NavigationLink... Hope you can help me out please . Have a nice Weekend.... import SwiftUI struct ContentView: View { func Images(_ images : Images){} var columns = [GridItem(.adaptive(minimum: 170), spacing: 20)] var body: some View { NavigationView { ScrollView { LazyVGrid(columns: columns, spacing: 10) { ForEach(ImagesList, id: .id) {images in ImageCard(images: images) NavigationLink {LandCard()} label: { ImageCard() }) } } .padding(10) } .navigationTitle(Text(Bilder)) } .navigationViewStyle(StackNavigationViewStyle()) } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
6
0
1.8k
Jul ’22
Reply to Missing argument for parameter 'images' in call
Have a lot of thanks.... Of Course. Here ist Code for ImageCard.... import Swift UI struct ImageCard: View { var images: Images var body: some View { NavigationView{ ZStack(alignment: .bottom) { Image(images.image) .resizable() .cornerRadius(18) .frame(width: 200) .scaledToFit() VStack(alignment: .leading) Text((images.category)) .frame(width: 200, height: 40, alignment: .center ) .background(.ultraThinMaterial) .cornerRadius(18) .bold() } .frame(width: 200, height: 200) .shadow(radius: 3) } } } struct ImageCard_Previews: PreviewProvider { static var previews: some View { ImageCard(images: ImagesList[0]) } } And here is the Code of my model import Foundation struct Images: Identifiable { var id = UUID() var name: String var category: String var image: String } var ImagesList = [Images(name: Steinkirchen, category: Landschaften, image: Uebersicht_1), Images(name: Seacloud-Spirit,category: Maritimes, image: Uebersicht_2), Images(name: Grashalm, category: Natur, image: Uebersicht_3), Images(name: Details, catego
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’22
SwiftUI Table Modifying Data when Scrolling
Hey there everyone, I finally got a multicolumn table implemented with what I wanted after looking through the code sample provided here, but now I am having some issues with how the data is displayed. At first, everything displays correctly and fields update as they should, but whenever I scroll, the data does not present it itself as it should, in other words cells that should have remain one value end up changing or zeroing out, which affects the column holding a running total. The application, which is a checkbook ledger application, holds its data in an SQLite database and when I view the database, the values there have changes as well, which forces me to import a previous SQL dump to get everything back, only to experience the issue again. When I go back to an old version of the application, which has a hideous UI, however, scrolling does not modify anything. Does anybody know how to deal with this little problem? If you would like to see what I have already, here is the source code as it curre
2
0
894
Jul ’22
Reply to Back supported Navigation-View
NavigationView has only been soft deprecated, so will still function on iOS 16. As for manually back deploying, since NavigationView has been split into two parts but come with added components, such as a path and control over column visibility as well as the new NavigationLink(_:value:) and navigationDestination modifier, it would be quite difficult to accomodate all of this.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’22
Reply to Html part elements not display on page in Safari
@jason Thank you for answer. The code I worked on is an internal service, so I cannot disclose it, but Similarly, I worked on codesandbox. This issue appears in webviews. https://codesandbox.io/s/still-rain-gx5b4h It is plain html and css coding, and the problematic part is the red area. main { position: relative; display: flex; flex-direction: column; align-items: center; } It is the state that flex is given to the main tag, and the child has the position property. I don't know if the css specific attribute is unstable in safari or the main tag attribute itself is the problem. In particular, only in safari (including the latest version) intermittently the area with the red border takes up space, and the elements (including children) are not rendered on the screen. like css visibility: hidden; It had the same effect as the reference. And when I scrolled, the above phenomenon suddenly disappeared. the suspicious part Safari flex, position properties ruin the layout The image of the .button1 class is n
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’22
Reply to ScrollView and prefersDefaultFocus currently incompatible?
And here is the working solution for tvOS 15: struct ContentView: View { @FocusState var focusedItem: String? @State var items = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] let columns: [GridItem] = Array(repeating: .init(.flexible()), count: 4) var body: some View { ScrollView() { LazyVGrid(columns: columns) { ForEach(items, id: .self) { item in Button { } label: { ItemView(title: item) } .focused($focusedItem, equals: item) .onMoveCommand { moveCommandDirection in guard let index = items.firstIndex(where: {$0 == item}) else { return } if moveCommandDirection == .down, index >= items.count - columns.count { focusedItem = items.last } } .padding(.bottom, 8) } } } } } If you have any workaround for tvOS 14 I'll be appreciated it.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’22
Reply to ScrollView and prefersDefaultFocus currently incompatible?
Yes, seems like since you wrap up HStack to ScrollView prefersDefaultFocus won't work correctly after that. I have a similar issue and can't get it to work for tvOS 14. Nevertheless, it works well with iOS 15 using @FocusState. So if you don't need tvOS 14 support you can use that approach. Here are my observations of the issue. What I try to achieve is set focus on the last item(10) if you press down on items 7 or 8. If I'm not wrapping up LazyVGrid into ScrollView everything works as expected. But as soon as I wrap up LazyVGrid into ScrollView when I press the down button on those items it always gets focused on the first item. Here is my code example and screenshot. struct ContentView: View { @Namespace var focusNamespace @Environment(.resetFocus) var resetFocus @State private var defaultFocusIndex: Int = 0 @State var items = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] let columns: [GridItem] = Array(repeating: .init(.flexible()), count: 4) var body: some View { ScrollView() { LazyVGrid(columns: columns
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’22
ITMS-90338: Non-public API usage - The app references non-public selectors in WoundMatrixHC.iOS: accumulatorPrecisionOption
Dear Support, I'm unable to push a build to TestFlight. This is using Xamarin.Forms as the build creator. I'm getting the error I have pasted below. Please advise how to resolve. Thank you, Joshua Lowenthal Dear Developer, We identified one or more issues with a recent delivery for your app, WoundMatrix Patient 1.57 (13). Please correct the following issues, then upload again. ITMS-90338: Non-public API usage - The app references non-public selectors in WoundMatrixHC.iOS: accumulatorPrecisionOption, alignCorners, assetForIdentifier:, attackTime, batchStart, bytesPerImage, calibrationMode, checkFocusGroupTreeForEnvironment:, classesLossDescriptor, clipRect, colorTransform, columns, commissioningComplete:, computeStatistics, confidenceLossDescriptor, curveType, deactivate, determineAppInstallationAttributionWithCompletionHandler:, encodeToCommandBuffer:sourceTexture:destinationTexture:, envelope, first, forward, frontFacingWinding, gradientForWeights, initWithBuffer:offset:, initWithCoder:device:, init
5
0
3k
Jul ’22