Skip to content

Instantly share code, notes, and snippets.

@mitsuharu
Created November 2, 2022 23:43
Show Gist options
  • Save mitsuharu/1242b7f5f972820ec7a26990ea3a2771 to your computer and use it in GitHub Desktop.
Save mitsuharu/1242b7f5f972820ec7a26990ea3a2771 to your computer and use it in GitHub Desktop.
import SwiftUI
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
Text("SwiftUI\n完全に理解した")
.overlay {
Path(UIBezierPath(roundedRect: CGRect(
x: -60,
y: -20,
width: 150,
height: 80
), cornerRadius: 20).cgPath).stroke(.black, lineWidth: 2)
}
}
}
}
@mitsuharu
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment