Post

Replies

Boosts

Views

Activity

Can i use emoji in my iOS App?
I want to use emoji like this in my iOS app and release it on the App Store. struct ContentView: View { @State private var move = false var body: some View { VStack { Text("👻") .font(.largeTitle) .position(x: move ? 50 : 400) Button("Move") { withAnimation(.linear(duration: 2)) { move.toggle() } } } } } Are there any other problems with this?(like legal issues, etc.)
1
0
2.4k
Aug ’23
Can I use the machine learning model provided here in my app?
I'm trying to create an app that uses artificial intelligence technology. One of the models provided on this website(https://developer.apple.com/machine-learning/models/) will be used. Are there any copyright or legal issues if I create an app using the model provided by this website and distribute it to the App Store?
1
0
824
May ’24
When to use private?
I watched Stanford 193p, and I had a question. When the professor writes the code, he writes like this struct GameView: View { var body: some View { gameBody } var gameBody: some View { Button("gameBody") { gameBodyFunc() } } private func gameBodyFunc() { } } Why is the function declared private but not the gameBody variable? I am impressed with his coding style and want to learn it.
2
0
740
Mar ’23
Which coding style is more popular among the two?
I prefer the coding style below. (Of course, the code below is not long, but when the number of lines is long) struct ContentView: View { var body: some View { VStack { text hello } } var text: some View { Text("text") .padding() } var hello: some View { Button("hello") { print("hello") } } } But people seem to prefer the style below.(Not only when the number of lines of code is small, but also when it is long) struct ContentView: View { var body: some View { VStack { Text("text") .padding() Button("hello") { print("hello") } } } } Which coding style is more popular among the two?
2
0
711
Aug ’23
why is this error occurring?
my code func placeObjectAtImageTracking(object: ModelEntity, imageAnchor: ARImageAnchor) -> AnchorEntity {     let imageAnchorEntity = AnchorEntity(anchor: imageAnchor) return imageAnchorEntity } in this code, AnchorEntity(anchor: imageAnchor) is occuring error when i changed xcode setting device. It's fine when I set it to my real phone, but when I change it to the simulator, the following error appears. No exact matches in call to initializer  how to solve it?
3
0
1.8k
Jan ’23