Any problem?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
i will make and release my app in appstore.
in this process, i use sfsymbols icons in my app.
Is this legally okay? like copyright
The professor codes like this in the lecture
var number: Int {
return 3 }
what's different about this?
var number: Int = 3
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?
can i use sf symbols applelogo(Image(systemname:"applelogo") on my swift playgrounds app?
var name: String? = "name"
if let copyname = name {
print(copyname)
}
In this code, are name and copyname allocated in two different memory?
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.
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?
I'm sorry I don't speak English well, so I use a translator so sentences may be awkward.
I am a Korean college student who likes swift.
Most Korean men go to the military. So next year I will take a leave of absence from university and I will be one of them.
But, I would like to participate in the annual WWDC swift student challenge.
Is it possible for me to participate and win?
If I take a leave of absence and participate as a soldier, is it impossible to receive the award?
I wonder how the + function is used directly.
extension CGPoint {
static func add(lhs: Self, rhs: Self) -> CGPoint {
CGPoint(x: lhs.x + rhs.x, y: lhs.y + rhs.y)
}
static func +(lhs: Self, rhs: Self) -> CGPoint {
CGPoint(x: lhs.x + rhs.x, y: lhs.y + rhs.y)
}
}
private func testCGPoint() {
let dummy1 = CGPoint(x: 2, y: 3)
let dummy2 = CGPoint(x: 4, y: 5)
let dummy3: CGPoint = .add(lhs: dummy1, rhs: dummy2)
let dummy4: CGPoint = dummy1 + dummy2
}
in my expectation, I thought that the + function would be used like the add function. i thought this form.
CGPoint.+(lhs: dummy1, rhs: dummy2)
But the + function did not.
How are you doing this?
I am a student studying AR with ARkit.
I want a variety of assets that can be used commercially. (there are limits to what I can do myself...)
Is there any place where I can get assets(like 3Dmodels, usdz file etc.) like Unity's asset store?
The resources on the Apple developer homepage are good but few, and don't know if they are commercially available.
I want to make object capture app in iOS.
I've been looking for object capture examples, but there are only macOS.
how to make object capture app in iOS?
As far as I know, the winning result confirmation webpage disappears after a few years.
I want to use the fact that I won when I get a job in a few years, but how can I prove it?
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.)
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?
Topic:
App Store Distribution & Marketing
SubTopic:
General
Tags:
App Store
Swift
Machine Learning
Core ML