I'd have a speech at a begin of a long pressure:
class Cell: UITableViewCell
{
override func awakeFromNib()
{
...
let willSpeech = UILongPressGestureRecognizer(target: self, action: #selector(longPress(gesture:)))
button.addGestureRecognizer(willSpeech)
}
@objc func longPress(gesture: UILongPressGestureRecognizer)
{
switch gesture.state
{
case .began:
let utterance = AVSpeechUtterance(string: "hello")
let speechSynthesizer = AVSpeechSynthesizer()
speechSynthesizer.speak(utterance)
...
}
}
}
But the speech start only when the button is released.
Is there a way to let the speech start immediately even during a long pressure gesture recogniser?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
In App Store Connect Trends tab the Sales graph show one sale happened the last day of the period; all other graphs (App Units, Top Apps, Territories) have don't have the corresponding app.
On Xcode 13.3 and iOS15.4 I don't found a way to add something in the bottom bar without Xcode warning. This sample of swiftUI code:
{
var body: some View {
Text("Hello, World!")
.toolbar {
ToolbarItem(placement: .bottomBar) {
Text("Bottom Bar")
}
}
}
}
causes: "Unable to simultaneously satisfy constraints." (a long list follows).
Am I missing something?
The Apple Distribution certificate is present in the login Keychain, as well as the Development one.
In Xcode preferences both are visibile and valid.
In Xcode target only the development certificate is present and I'm unable to set the distribution one.
For this reason my last app has been refused on the Apple Store Connect.
How can I set the distribution certificate on the App target?
I agree with Apple Human Interface Guidelines that states "Design a launch screen that’s nearly identical to the first screen of your app", but:
A SwiftUI App for both macOS and iOS cannot have a storyboard Launch Screen
Images can be scaled only at: 2x/3x, Compact/Regular, iPhone/iPad
Launch Screen can have central, top (Navigation bar) and bottom (Tab Bar and Toolbar) images
Launch screen images are centered in the screen space
Launch screen images are stretched to fill the screen space
With the rules above, I'm unable to create launch screens for every screen size. If the image in the asset is sized for a small screen, i.e. an iPhone SE, it will be distorted in a 'long' screen, i.e. an iPhone 14, and viceversa.
Have I missed some possibility to better define how to define or manage the launch screen images?
With "Requires full screen" Split View and Slide Over are disabled but the line on the bottom of the screen remains.
How can that line removed as when a video is displayed full screen?
Topic:
UI Frameworks
SubTopic:
General