What personally identifiable information do you think the forum is storing on you that doesn't already exist under your apple id that is not duplicated here? And how does removing your profile help with posts created or answered by you that could help someone else?
Post not yet marked as solved
You will have ask this question in the non-developer community here: https://discussions.apple.com/welcome
Treat it as a black box - you don't need to know.
Post not yet marked as solved
I have not tested this but give it a try
SB
import SwiftUI
struct TextFieldDynamicHeight: ViewModifier {
var fullSize: Binding<Bool> = .constant(false)
var upperRange: ClosedRange<Int>
var lowerRange: ClosedRange<Int>
var upperBound: Int
var lowerBound: Int
func body(content: Content) -> some View {
if #available(iOS 16.0, *) {
content
.lineLimit(fullSize.wrappedValue ? upperRange : lowerRange)
} else {
content
.lineLimit(fullSize.wrappedValue ? upperBound : lowerBound)
}
}
}
extension View {
@available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
func lineLimit(_ fullSize: Binding<Bool>, upperRange: ClosedRange<Int>, lowerRange: ClosedRange<Int>) -> some View {
modifier(TextFieldDynamicHeight(fullSize: fullSize, upperRange: upperRange, lowerRange: lowerRange,
upperBound: 0, lowerBound: 0))
}
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
func lineLimit(_ fullSize: Binding<Bool>, upperBound: Int, lowerBound: Int) -> some View {
modifier(TextFieldDynamicHeight(fullSize: fullSize, upperRange: 0...0, lowerRange: 0...0,
upperBound: upperBound, lowerBound: lowerBound))
}
}
struct ContentView: View {
@State private var description: String = ""
@State private var fullSize: Bool = false
@State private var fullHeight: Bool = false
var body: some View {
VStack {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundColor(.accentColor)
Text("Hello world!")
}
if #available(iOS 16.0, *) {
TextField("Type a textmail", text: $description, axis: .vertical)
.lineLimit($fullSize, upperRange: 2...6, lowerRange: 2...3)
.foregroundColor(.white)
.background(Color.blue)
.frame(height: fullHeight ? 300 : 100)
.padding(0)
} else {
TextField("Type a textmail", text: $description)
.lineLimit($fullSize, upperBound:6, lowerBound: 3)
.foregroundColor(.white)
.background(Color.blue)
.frame(height: fullHeight ? 300 : 100)
.padding(0)
}
Button("Full size") {
fullSize.toggle()
print("fullSize: \(fullSize)")
}
.padding(5)
Button("Full height") {
fullHeight.toggle()
print("fullHeight: \(fullHeight)")
}
.padding(5)
}
}
}
Post not yet marked as solved
Adding Gestures to a 3rd party library can cause unexpected side effects if not supported by the very same 3rd party library. Consult the 3rd party site/Github project or documentation on what is and is not supported by their framework.
Post not yet marked as solved
This is Beta software so anything is expected at this point of time if running any of the Beta tools or OSes.
Post not yet marked as solved
I've tested your findings above and this does look like an issue of a potential String: Error {} extension conformance. The most we can do is wait and see where the Beta revisions take us with the implementation SFError.
Post not yet marked as solved
I ran your code with Xcode 13.4.1 & iOS 15.5 and it works as expected and not as described: one thing I will do is sort the data at source
self.objectList = [
Testclass(name: "A1"),
Testclass(name: "B1"),
Testclass(name: "Z2"),
Testclass(name: "C1"),
Testclass(name: "D1"),
Testclass(name: "D2"),
Testclass(name: "A2"),
Testclass(name: "Z1")
].sorted(by: {$0.name < $1.name})
Post not yet marked as solved
The error message is pointing you to the solution. Open ApiService.swift and look for the import statement import Amplify remove it or make sure the module, framework or library is added to the project correctly.
Post not yet marked as solved
Follow the entitlement request URL in the documentation
Post not yet marked as solved
And sample code here (entitlement to use services is required from Apple) https://developer.apple.com/documentation/networkextension/configuring_a_wi-fi_accessory_to_join_the_user_s_network
Post not yet marked as solved
See here -> https://developer.apple.com/documentation/networkextension
Post not yet marked as solved
But if you change __internalNumber from @State to @Binding it will bind to any changes as a result of any external @State side effects.
public struct TestView: View {
var number: Int
@Binding private var _internalNumber: Int
public init(number: Int) {
self.number = number
self.__internalNumber = Binding.constant(number) // bind __internalNumber to changes of the external @State variable
}
public var body: some View {
VStack(alignment: .leading) {
Text("number: \(number)")
Text("internal: \(_internalNumber)")
}
.debugAction {
Self._printChanges()
print("number: \(number)")
print("_internalNumber: \(_internalNumber)")
}
}
}
This example shows that it does print on the first selection:
import SwiftUI
struct ContentView: View {
@State var fruitName: String = "none"
var body: some View {
VStack {
Menu {
PickFruit(fruitName: $fruitName)
} label: {Text("Select A Fruit")}
Text(fruitName)
}
.onChange(of: fruitName) { [fruitName] newValue in // move onchange to here
print(newValue)
print(fruitName)
}
}
}
struct PickFruit: View {
let myFruits: [String] = ["Apple","Banana","Grape","Peach"]
@Binding var fruitName: String
var body: some View {
VStack {
Text(fruitName)
Picker("Select", selection: $fruitName) {
ForEach(myFruits, id: \.self) { myFruits in
Text(myFruits)
}
}
}
}
}