Am trying to get away from using UIPageViewController for a number of reasons, not the least of which is several perennial crashes that happen occasionally that I've never been able to reproduce myself but happen enough in the wild to be noticeable.
I have high hopes for the new UICollectionViewCompositionalLayout in iOS 13 SDK; have worked around the safeArea issue.
However, I cannot find a way to workaround or fix the problem that occurs when I rotate the device. Before rotation things are great, paging works, etc. Then when I do rotate the device the collectionView is scrolled such that I see half of two separate cells. Basically the current cell is not handled correctly.
Any ideas or suggestions?
Below is my layout for reference. Its as basic as one can get.
private func createLayout() -> UICollectionViewLayout {
let itemSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0), heightDimension: .fractionalHeight(1.0))
let item = NSCollectionLayoutItem(layoutSize: itemSize)
let groupSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0), heightDimension: .fractionalHeight(1.0))
let group = NSCollectionLayoutGroup.vertical(layoutSize: groupSize, subitems: [item])
let section = NSCollectionLayoutSection(group: group)
section.orthogonalScrollingBehavior = .groupPaging
let layout = UICollectionViewCompositionalLayout(section: section)
return layout
}
}
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I have noticed that I am not getting any form of notification that someone has replied to a question I pose on this forum. I don't get a chance to constantly check the forums so it would be nice if we could be notified.
I have user's wondering why my apps do not have a microphone icon in search fields that let them go directly to dictation, like the iOS Mail app.
I know of no feature that would allow me to accomplish the same look/behavior. Understanding that the user first has to bring up the regular keyboard then tap the microphone on the bottom of the keyboard.
Apple's apps should not be using features in what appear to be standard components that us app developers don't have access to.
Before I file the enhancement/bug report I just want to confirm that I am correct in my thinking.
I want to clean up a bunch of questions that I have asked that have reasonable responses, but I cannot figure out for the life of me how to indicate that a question is Solved.
I do still see a "Solved" count in my profile.
I see that many accessibility features have been added to the SwiftUI API, but I am unable to find support for LargeContentViewer on custom views.
Is it perhaps going by a different name? Is it really not supported yet in the latest SwiftUI implementation?
I am starting to use CLLocationButton in my apps, but can see an issue with its behavior. When the user taps on a UIButton it is visually noticeable that it's being tapped. Color/Alpha change, image adjusts, etc... When the user taps on a CLLocationButton there is no queues as to it being pressed.
I've had several test users complain already that they think the button is not working given that the action might not result in an immediately change to the UI.
Apple FB: FB10019792
Open Radar: https://openradar.appspot.com/FB10019792
I am attempting to utilize the new SWAttributionView in SwiftUI since I am adding SharedWithYou support to one of my apps. Below is the UIViewRepresentable I created to wrap the UIKit component.
I have tried many combinations of view modifiers, but have not figured out how to get the height to be just what's needed. My goal is to pin the view near the bottom trailing edge of the view containing it.
If I do the same UIViewRepresentable wrapping a UILabel, for testing purposes, I can simple use .fixedSize on it and a Spacer() to get the vertical effect I am looking for.
struct AttributionView: UIViewRepresentable {
var highlight: SWHighlight
func makeUIView(context: Context) -> SWAttributionView {
SWAttributionView()
}
func updateUIView(_ uiView: SWAttributionView, context: Context) {
uiView.highlight = highlight
uiView.backgroundStyle = .material
uiView.horizontalAlignment = .trailing
uiView.displayContext = .summary
}
}
I just want to see if anyone has worked around the following issue. I did file feedback at FB11405641.
Using Apple's demo app from WWDC, if I open the LookAround when on an iPad in either split screen or using Stage Manager the full screen representation is not respecting the actual size of the window. See
Here are some videos showing the issue:
https://www.hotngui.com/tmp/SplitScreen.mov
https://www.hotngui.com/tmp/StageManager.mov
For the life of me I cannot find any documentation that explains the limits of how much space an app can use in the Public and Private database. How to get more Public space, and how to know we need to ask the user to get more iCloud storage for their private database.
Any pointers appreciated...
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags:
CloudKit
iCloud Drive
Cloud and Local Storage
I want to use a NSCollectionViewDiffableDataSource with the newish UICollectionLayoutListConfiguration, but I have a requirement that when deleting a cell it needs to animate out from the right; ditto for when inserting items.
However I see no way to control the animation. I know that the UITableViewDiffableDataSource has the defaultRowAnimation property that can be set to affect the animation - Is there an equivalent approach to controlling that of the UICollectionViewDiffableDataSource?
I have a designer asking how popular dark mode usage is among iPhone users. Are there any legit statistics available on the subject that someone (may Apple) can point them to?
I love the new UIImage(resource:) initializer that uses the automatically generated symbols for my image assets.
However, there does not appear to be an equivalent in SpriteKit so I am forced to still use SKSpriteNode(imageNamed:)
I am using Xcode 15 Beta 7.
Will this be included when Xcode 15 goes into production?
Am looking to finally updating some old code now that we are dropping iOS 15 support and want to move to the new mkMapView configurations such as MKHybridMapConfiguration.
However when I use that configuration I cannot get it to show traffic conditions, even though I am setting showsTraffic = true
Bug, feature, dumb coding error on my part?
Am tired of asking my boss to forward me the emails they get from Apple with the subject "The uploaded build for XXXX has one or more issues."
I am trying to debug issues such as ITMS-91053: Missing API declaration as we deal with our 3rd party package usage.
What permissions, privileges do I need to get those emails?
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store
App Store Connect
App Submission
I am trying to get the playbackStoreID via the MPMediaPickerController so I can play songs in my app. For many songs I can see and select I am getting a value of "0" for the playbackStoreID on the returned MPMediaItem.
Now if I use the "Music" app I can play those songs, but since the playbackStoreID is "0" I cannot successful get them in the queue for a MPMusicPlayerController.applicationQueuePlayer
What's the deal?
How do I get a proper ID that I can use to get those songs played?
If I cannot, how can I hide those songs from the MPMediaPickerController so a user does not think they can play those songs in my app?