Design with SwiftUI

RSS for tag

Discuss the WWDC23 Session Design with SwiftUI

View Session

Posts under wwdc2023-10115 tag

5 Posts
Sort by:
Post marked as solved
6 Replies
2.4k Views
Description In Live Activities, we saw many beautiful animations that powered by .numericText() like Text(time, style: .timer), or even Text with .contentTransition(.numericText()) applied. But it seems like in normal SwiftUI View, these beautiful animations are gone. Instead, we saw a blinking result or fade-in-out result. Is that exactly right? ScreenShots In Live Activity: In normal SwiftUI View:
Posted Last updated
.
Post not yet marked as solved
4 Replies
1.3k Views
my Mac is M1 Pro 2021 , I recently updated to macOS Sonoma and it was fine, of course a lot of softwares weren't working but it's common right? But when I am opening canvus in Xcode 15 and working in it , my mac's screen started blinking crazy that I can't use it now and the mac was freeze and need to shut down . . Is it just me?
Posted Last updated
.
Post not yet marked as solved
3 Replies
732 Views
In Xcode 15 beta 3 and beta 4, if you add a AppShortcuts.xcstrings catalog or legacy AppShortcuts.strings files to the project, the project will always fail to build due to the following error. error: Unable to call validation: The data couldn’t be read because it isn’t in the correct format. (in target 'LearnAppShortcuts' from project 'LearnAppShortcuts') Command ValidateAppShortcutStringsMetadata emitted errors but did not return a nonzero exit code to indicate failure The error seems related to a cli called ValidateAppShortcutStringsMetadata. Reproducing Steps (1) In Xcode 15 beta 3/4, create a new iOS app project. (2) Add an arbitrary AppIntent and AppShortcutsProvider. import AppIntents struct MyAction: AppIntent { static let title: LocalizedStringResource = "My Action" func perform() async throws -> some IntentResult { return .result() } } struct MyAppShortcts: AppShortcutsProvider { static var appShortcuts: [AppShortcut] { AppShortcut(intent: MyAction(), phrases: [ "Perform action with \(.applicationName)" ], shortTitle: "Perform My Action", systemImageName: "heart") } } (3) Create a new AppShortcuts.xcstrings catalog file and add it to the iOS target (4) Build the project. The string catalog will be updated as expected. However, the build will fail.
Posted
by Gong.
Last updated
.
Post not yet marked as solved
0 Replies
550 Views
Why ScrollView shows event logs in console. ScrollView { VStack(alignment: .leading, spacing:0) { HStack{ Text("ScrollView Testing").font(.largeTitle) Spacer() } } } code-block # Logs `Evaluating dispatch of UIEvent: 0x600003909ad0; type: 0; subtype: 0; backing type: 11; shouldSend: 1; ignoreInteractionEvents: 0, systemGestureStateChange: 0` Is this behavior normal or something messing up with UIEvent ? I am new bee with ScrollView.
Posted
by AShaji.
Last updated
.
Post not yet marked as solved
1 Replies
716 Views
TextField("BG Value", text: $text).keyboardType(.numberPad) when ever i tried to show numberpad as TextField Input i am getting error Error as below : Cannot infer contextual base in reference to member 'numberPad' Value of type 'TextField' has no member 'keyboardType' Any suggest me on this issue
Posted Last updated
.