Search results for

column

2,071 results found

Post

Replies

Boosts

Views

Activity

iOS 18 on iPad not honouring default 'Send from' account
Running iOS 18 beta on iPad 9th Gen. I have two email accounts set up in Mail - an iCloud account which is the default account in 'Settings>Apps>Mail>Default Account'. I also have a Gmail account - which gets most of my mailing list, digests and general 'junk' etc. I use the Mail app & the 'All inboxes' view to read my emails on my iPad. I want to send all new messages from my iCloud account but, despite it being the default, this does not happen. Whenever I start a new message, the sending account selected depends on the highlighted message in the left column. So, when I start a new email to my wife, if I happen to have a mailing list message selected from my Gmail account, the email gets sent from my Gmail address. Unfortunately I have more mail sent to my Gmail account than my iCloud so it is more likely that the non-default account is chosen. On macOS, the default sending address is honoured whatever email is selected. This is inconsistent behaviour between the two systems.
0
0
405
Jul ’24
No place to update license agreement
When I login to my Dev account, I get a banner that says The updated Apple Developer Program License Agreement needs to be reviewed. In order to update your existing apps and submit new apps to the App Store, the Account Holder must review and accept the updated agreement. However, when I go to Agreements, Tax, and Banking, I see both Free Apps and Paid Apps agreement, but when I click on View, there's nothing for me to accept. It's a pop-up window with a list of countries and a button at the end that says Close. And that's it. No other action is possible. No other option either under the Action column.
1
0
631
Jul ’24
Photos Picker Selection
Hi! I am having a bit of trouble with the Photos Picker. In my app, users are able to select photos to appear in a grid, right in the app. I am using the new Photos Picker with SwiftUI. I want to be able to have my users select the images after they have been added to the View. So I want there to be a select button in the top toolbar on the leading side, and then once the user hits the select button, they can select the photos they want to remove on the grid, just like in the photos app, and then where the button to add photos originally is, there will be a trash icon to remove the selected photos from the grid. How would I do this? I have attached my code below for my view, as well as my PhotoPicker: import PhotosUI struct LifestyleImagePicker: View { @StateObject var imagePicker = ImagePicker() @State private var showingDetail = false @State private var selectedIndex = 0 @State private var isSelecting = false @State private var isAddingPhoto = false let columns = [GridItem(.adaptive(minimum: 100))]
1
0
1k
Jul ’24
UICollectionView
I have 12 cells in a collection view. I am trying to find Swift code to make it display (4 rows x 3 columns) when the device is portrait, and then (2 rows by 6 columns) when in landscape. I need each cell to evenly layout within the view and to fill it.
Topic: Design SubTopic: General
0
0
438
Jul ’24
Reply to -34018 A required entitlement isn't present. from command line swift program and more
[quote='795793022, alfred_eisenberg, /thread/759481?answerId=795793022#795793022, /profile/alfred_eisenberg'] I am trying to create/manage identities. [/quote] Thanks for confirming that. [quote='795793022, alfred_eisenberg, /thread/759481?answerId=795793022#795793022, /profile/alfred_eisenberg'] it seems that certs in this keychain aren't visible with the keychain access app or apparently security find-certificate [/quote] Yep. Both of those are a common source of confusion, which I call out in the User interface section of TN3137. I usually work around this by adding a small test UI to my app that lets me do keychain-related stuff, like dump all the items in my keychain access group, delete those items, and so on. In terms of how you handle multiple certificates for the same key, the trick here is to work in ‘identity space’. If there are multiple certificates for the same key, you’ll get an identity for each one. It’s trivial to get the certificate and key from each identity (SecIdentityCopyCertificate and
Topic: Privacy & Security SubTopic: General Tags:
Jul ’24
iPadOS 18 TabView / NavigationSplitView title
I have a TabView with individual tabs containing NavigationSplitViews. On iPadOS 18, when moving the new UI into a sidebar, the title of the first column in the current split view randomly spins its way in and out of view. Is this just a beta bug, or am I doing something wrong? Hard to convey without a recording, but hopefully the screenshots will show what I mean. Thanks.
1
0
711
Jul ’24
SwiftUI hierarchical table - how to control which column contains expander arrows
I have a SwiftUI macOS hierarchical table with 'children' initializer argument. Everything is working fine but I'd like to have expander arrows in different column. TableColumn definition order doesn't seem to have any effect nor has the order of properties in the model. Is there a way how to define which column should contain expander arrows?
0
0
311
Jul ’24
SwiftUI: View is not rendered properly
Problem: When clicking on an item, it will be (un-)completed. When it's completed then ChildView should show GroupsView. However, that's not the case. The logs are like this: init, group Fruits - items not completed false - showItems false body, group Fruits - items not completed false - showItems true init, group Fruits - items not completed false - showItems false init, group Fruits - items not completed false - showItems false import SwiftUI import SwiftData @main struct MainApp: App { var body: some Scene { WindowGroup { SomeView() } .modelContainer(appContainer) } } struct SomeView: View { @Query private var items: [AItem] var body: some View { ParentView(items: items) } } struct ParentView: View { private var groupedItems: [GroupedAItems] = [] init(items: [AItem]) { Dictionary(grouping: items) { $0.categoryName } .forEach { let groupedItems = GroupedAItems(categoryName: $0.key, items: $0.value) self.groupedItems.append(groupedItems) } } var body: some View { ScrollView { VStack(spacing: 15) { ForEach(gr
1
0
487
Jul ’24
NavigationSplitView
Hello everyone, I am currently trying to implement and test the latest SwiftUI changes with Xcode 16 Beta 3. Now I wanted to create, like in FreeForm, that I have a grid in the detail column with tiles in a NavigationSplitView. If you now press on the tile, a DetailView (in my code its an EmptyView) should open with the zoom effect and in fullscreen so that the NavigationSplitView disappears and the NavigationBar is no longer there. In FreeForm the desired effect is when you create a new board. any tips or hints? struct CanvasGrid: View { @Namespace var namespace; var body: some View { if let project = project { if viewMode == .grid { ScrollView{ LazyVGrid(columns: columns, spacing: 10) { ForEach(sortedCanvases) { canvas in NavigationLink { EmptyView() .navigationTransition( .zoom(sourceID: canvas.id, in: namespace) ) } label: { CanvasTile(canvas: canvas) } .matchedTransitionSource(id: canvas.id, in: namespace) } } .searchable(text: $searchText) .navigationTitle(project.name) } } #P
0
0
504
Jul ’24
Reply to SwiftUI view is not updated properly
Working code snippet: import SwiftUI import SwiftData @main struct MainApp: App { var body: some Scene { WindowGroup { SomeView() } .modelContainer(appContainer) } } struct SomeView: View { @Query private var items: [AItem] var body: some View { ParentView(items: items) } } struct ParentView: View { private var groupedItems: [GroupedAItems] = [] init(items: [AItem]) { Dictionary(grouping: items) { $0.categoryName } .forEach { let groupedItems = GroupedAItems(categoryName: $0.key, items: $0.value) self.groupedItems.append(groupedItems) } } var body: some View { ScrollView { VStack(spacing: 15) { ForEach(groupedItems, id: .self.categoryName) { groupedItems in ChildView(groupedItems) } } } } } struct ChildView: View { public var groupedItems: GroupedAItems @State private var showItems: Bool init(_ groupedItems: GroupedAItems) { self.groupedItems = groupedItems self._showItems = State(initialValue: !groupedItems.completed) print(init, group (groupedItems.categoryName) - items not completed (!groupedItems.complete
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’24
.chartXScale not scaling domain of Chart as expected
Hi, I'm currently wrestling with the .chartXScale(domain:) modifier in order to get my Chart to display correctly. The basics of the Chart look like this. Chart(measurements, id: .timestamp) { measurement in if let total = measurement.production?.total { BarMark( x: .value( Timestamp, measurement.timestamp, unit: .weekOfYear, calendar: .current ), y: .value( Solar production, total ) ) } } As anyone familiar with Charts can see, I sort data into columns based on what week of the year the measurements belong to. Some of them can be null, and when they are, I still want space in the Chart where a BarMark would've been to be taken up, like week number 4 in this example chart (in which I've defaulted all measurements that are null in week 4 to 0, for demonstration purposes): To achieve that, as I understand, I'm meant to use the .chartXScale(domain:) modifier, but when I apply the following modifier... .chartXScale(domain: firstDayOfMonth...firstDayOfNextMonth) ... (where the domain is from the first day
9
0
1.3k
Jul ’24
Really High Energy Use
I'm developing an app where users can select items to add to a screen, similar to creating a Canva presentation or choosing blocks in Minecraft. However, I'm encountering an issue with energy usage. When users click the arrows to browse different items, the energy use spikes significantly. Although it returns to normal after a while, continuous clicking causes the energy use to skyrocket. The images I'm using are 500x500 pixels. Ideally, I would like to avoid caching all the images, as the app might have up to 500 items and caching them all would consume too much memory. I have tried numerous way to avoid this but I just can’t seem to make it work. Would anyone know how to avoid such problem? I have included a picture of the energy use when just opened, and one after like 10 seconds of continuously clicking on an arrow to see more items. Also a picture of how the app looks. struct ContentView: View { struct babyBackground { var littleImage = } @State var firstSet: [babyBackground] = [ babyBackground(littleIm
1
0
799
Jul ’24
Is it possible to use a list-style UICollectionView but have multiple columns?
I'm working on a UICollectionView that has a custom compositional layout with multiple columns. I wanted to add swipe actions to the cells (specifically, a delete action). I knew this was possible because of the existence of trailingSwipeActionsConfigurationProvider but I didn't realize that this is only for list layouts, created with UICollectionViewCompositionalLayout.list. But if I use a list layout, I don't think I have any opportunity to add multiple columns. Do I really have to choose between multiple columns and trailing swipe actions? Or is there some way to get both?
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
510
Jul ’24
Reply to SwiftUI List OutlineGroup
@JMDelh Have you considered using a two-column navigation split view instead? The selection works but the detail view is updated only when I click the text but not when I click the rest of the row. This results in the detail view not being sync with the list selection. Apply the contentShape(_:eoFill:) and set the maxWidth of to infinity Text((item.description)) .frame(maxWidth: .infinity) .contentShape(Rectangle())
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’24