Post

Replies

Boosts

Views

Activity

Reply to Strange Overlay with NSWorkspace.shared.icon(forFile: )
Personally, I think it's a SwiftUI bug. I have a similar problem with the ImageRenderer class and get the same symbol. I've filed a feedback report. It's been 5 or 6 weeks. When I filed a bug report 9 or 10 years ago regarding Core Graphics, I had to wait for 3 months. If possible, you may write code in Cocoa and use it as NSViewControllerRepresentable or NSViewRepresentable.
Topic: UI Frameworks SubTopic: AppKit Tags:
Oct ’23
Reply to Switching Locale with Picker
I've made some change the App View as follows. import SwiftUI @main struct LocaleSwitchCrazyMamaApp: App { @StateObject var lanSetting = LanguageSetting() var body: some Scene { WindowGroup { ContentView() .environmentObject(lanSetting) .environment(\.locale, lanSetting.locale) } } } The outcome doesn't change, though.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’23
Reply to Callback from onTapGesture Through Framework
I've removed the optional part in the framework as follows. And it works. I don't know why the callBack guy can't be optional, though, in the framework. import SwiftUI public struct ColorSelectorView: View { @Binding var selectedColor: Color @State var callBack: ((Color) -> Void) let colors: [Color] = [.blue, .green, .orange, .yellow, .red, .purple] public init(selectedColor: Binding<Color>, callBack: @escaping ((Color) -> Void)) { self._selectedColor = selectedColor self.callBack = callBack } public var body: some View { HStack { ForEach(colors, id: \.self) { color in Image(systemName: selectedColor == color ? "record.circle.fill" : "circle.fill") .foregroundColor(color) .onTapGesture { selectedColor = color callBack(color) } } } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’23
Reply to Our app I was rejected, reason: Your app is primarily a book and is therefore not appropriate for the App Store.
I suggest you read all App Review Guidelines if you haven't. The description of the app you provide seems to violate 4.2 Minimum Functionality. If the main function of your app is to show a book content, whether or not you have invested tens of millions of dollars developing it, whether or not you hired someone to compose music, it's still a book, isn't it? Your book has a unique story. And therefore, it should be admitted, you mean? You may want to have a content that a book can't have.
Feb ’24
Reply to Our app I was rejected, reason: Your app is primarily a book and is therefore not appropriate for the App Store.
If I were you, I would either accept a defeat and move on or download similar "interactive" books that you say are accepted into the App Store and find out how they make it. What I wouldn't do is take the case to the Appeals Board. The Appeals Board often takes the side of the reviewer FYI. If they do, that will be the end of your project.
Feb ’24
Reply to Strange Overlay with NSWorkspace.shared.icon(forFile: )
Personally, I think it's a SwiftUI bug. I have a similar problem with the ImageRenderer class and get the same symbol. I've filed a feedback report. It's been 5 or 6 weeks. When I filed a bug report 9 or 10 years ago regarding Core Graphics, I had to wait for 3 months. If possible, you may write code in Cocoa and use it as NSViewControllerRepresentable or NSViewRepresentable.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Switching Locale with Picker
The deployment target is iOS 16.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Switching Locale with Picker
I've made some change the App View as follows. import SwiftUI @main struct LocaleSwitchCrazyMamaApp: App { @StateObject var lanSetting = LanguageSetting() var body: some Scene { WindowGroup { ContentView() .environmentObject(lanSetting) .environment(\.locale, lanSetting.locale) } } } The outcome doesn't change, though.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Switching Locale with Picker
I guess I shouldn't do it after reading https://developer.apple.com/forums/thread/78244 .
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to URLSession ViewModel with Loading State
Hmm... Suddenly Susan, the app can now list records after I put the rows under the body guy in VStack.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to Render a SwiftUI view into an image on Dark mode not work
You are not employing the color scheme on Text("Text"), are you?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to Render a SwiftUI view into an image on Dark mode not work
Employ the color scheme inside the snapView guy. @ViewBuilder func snapView() -> some View { VStack { Text("Text") .background(colorScheme == .light ? .yellow : .brown) Text("Test2") .background(.green) snap snapEx() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to Callback from onTapGesture Through Framework
I've removed the optional part in the framework as follows. And it works. I don't know why the callBack guy can't be optional, though, in the framework. import SwiftUI public struct ColorSelectorView: View { @Binding var selectedColor: Color @State var callBack: ((Color) -> Void) let colors: [Color] = [.blue, .green, .orange, .yellow, .red, .purple] public init(selectedColor: Binding<Color>, callBack: @escaping ((Color) -> Void)) { self._selectedColor = selectedColor self.callBack = callBack } public var body: some View { HStack { ForEach(colors, id: \.self) { color in Image(systemName: selectedColor == color ? "record.circle.fill" : "circle.fill") .foregroundColor(color) .onTapGesture { selectedColor = color callBack(color) } } } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to SwiftUI #Preview with Callback Closure
In order to make a framework, I'm choosing to make the CallBack closure not optional.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to SwiftUI #Preview with Callback Closure
I guess it has to be optional. Ugghhhh...
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to To-do List, creating a new view from navigation link
A. Open a new view with Sheet or equivalent? B. Navigate to a new View to NavigateLink? C. Use NavigationSplitView?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to TextField with Custom Binding
I could do it with Combine. But that's not what I need. I need a solution with a custom binding.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to Our app I was rejected, reason: Your app is primarily a book and is therefore not appropriate for the App Store.
I suggest you read all App Review Guidelines if you haven't. The description of the app you provide seems to violate 4.2 Minimum Functionality. If the main function of your app is to show a book content, whether or not you have invested tens of millions of dollars developing it, whether or not you hired someone to compose music, it's still a book, isn't it? Your book has a unique story. And therefore, it should be admitted, you mean? You may want to have a content that a book can't have.
Replies
Boosts
Views
Activity
Feb ’24
Reply to Our app I was rejected, reason: Your app is primarily a book and is therefore not appropriate for the App Store.
If I were you, I would either accept a defeat and move on or download similar "interactive" books that you say are accepted into the App Store and find out how they make it. What I wouldn't do is take the case to the Appeals Board. The Appeals Board often takes the side of the reviewer FYI. If they do, that will be the end of your project.
Replies
Boosts
Views
Activity
Feb ’24
Reply to "Add for Review" button does nothing
I submitted a software update 90 minutes, and it has already been reviewed and accepted. So your case is probably isolated. Perhaps, you have an entered a version lower than the current one?
Replies
Boosts
Views
Activity
Feb ’24