Hello there!
Does anyone know how to apply Apple's default fonts to text in SwiftUI?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Created
Hello there!
I would like to set an image as the background of my project in SwiftUI, but I have no idea how it is done.
Could anyone help me to figure out this?
I am using Swift Playgrounds and SwiftUI framework.
Hi everyone! I was working on a playground in Swift Playground and I got an error. I can't understand what this error means, can anyone help me?
This is my code:
struct Preview: View {
@State var isPlaying = true
@State var num1 = 60
@State var num2 = 150
var body: some View {
if isPlaying == true { // ERROR: Only concrete types such as structs, enums and classes can conform to protocols
// Required by static method 'buildBlock' where 'C0' = ()
num1 += 1
print("\(num1)")
}
}
}
Thanks.
Hello world! I was creating a playground with Swift Playgrounds, and I created a .swift files and should connect these files to ContentView(), but when I write that file name on ContentView() it tells me "Cannot find ... in scope".
Does anyone know why this error and how to fix it?
Thanks in advance from heart.
Hi there! I have a public structure and I called it in my ContentView, but I can't understand where to punt the var/let. I try to put them before "var body: some view" but it gives me these errors.
Hey there! I have a Circle, and I would like to create many on this circle and display them in random position on the screen. Is it possible?
Thanks in advance.
Hello guys! Does anyone know how to export an Xcode app project in na Swift Playgrounds' playground?
Hello there! I'm trying to create a button with a neumorphic animation using SwiftUI, with a smooth animation when the user taps it.
Something like this:
Can someone help me to figure out this, please?
Thanks!
Hello everyone!
I had a question about the Apple’s WWDC Special event, hope someone can resolve my doubts.
For taking part of this event, will the event for invites be online or we have to go at Cupertino?
Because I read some articles that says the event for developers will in-person. Quindi sono un po’ confusa, per favore aiutatemi se riuscite ;)
Hi there!
Does anyone know if the flight for the Special Event at Apple Park can be paid by Apple?
Anyone who knows how it works, please help me.
Hello everyone! I recently updated my Mac to macOS Ventura, everything was updated as expected, but I'm having a problem with Xcode, I also updated Xcode, but when I clicked on it for opening it, a message appeared which says that "In order to use Xcode, you need to update to the latest version" (despite having already updated it), so, when I go on App Store for updating it again, it already says me to open, and there isn't the Update option.
I'm troubling with this problem... please if anyone knows how to fix it, help me.
Thank you.
Hello there! I was trying to build an app with the new App feature in Swift Playgrounds for Mac. But I have an error message in my code, and I can't understand how to fix it. Can anyone help me to solve this error.
Here's the code:
import SwiftUI
struct Something: View {
let rows = 17
let columns = 17
let size: CGFloat = 10
let blocks: [[Color]] = [[.purple, .purple]]
var body: some View {
VStack {
ForEach((0...self.rows - 1), id: \.self) { row in
HStack (spacing: 0) {
ForEach((0...self.columns - 1), id: \.self) { col in
VStack (spacing: 0) {
Rectangle()
.frame(width: self.size, height: self.size)
.foregroundColor(self.blocks[row][col]) // index out of range: the requested index was outside the bounds of the array.
}
}
}
}
}
}
}
Hi developers!
Does anyone know an app to make a short animated film like this https://youtu.be/a4PraWW82_A, which is also free?
I used Procreate before, but there is the layer limit and since my video is a little long I need more layouts :(
thanks in advance
Hello developers!
I have a question about which programming language is good for building a website.
I searched on the internet and it says that CSS and HTML are the most used, so suppose I want to use CSS, now the question is: where can I code to build the website? For example if I want to code in SwiftUI there are some apps (Xcode and Swift Playgrounds) to do it, but how can I do with the website in CSS?
If someone has the right answer, please help me.
Thanks.
Hello developers!
I have a question about which programming language is good for building a website. I searched on the internet and it says that CSS and HTML are the most used, so suppose I want to use CSS, now the question is: where can I code to build the website? For example if I want to code in SwiftUI there are some apps (Xcode and Swift Playgrounds) to do it, but how can I do with the website in CSS?
And what is the WebKit, can I still use it to build web pages using SwiftUI?
If someone has the right answer, please help me.
Thanks.