Skip to content

2sem/swiftui-rounded-border

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

I'm creating new app with SwiftUI. This time, I made a little special border.

The border should be rounded only outside.

Maybe you might think it can be solved by overlay content on border. However I wanted more customable.

Installation

SPM

Package(
  ...,
  dependencies: [
    .package(url: "https://github.com/2sem/swiftui-rounded-border", from: "0.0.2")
  ], ...
)

Tuist

let project = Project(
    ...,
    packages: [
        ...,
        .remote(url: "https://github.com/2sem/swiftui-rounded-border",
            requirement: .upToNextMinor(from: "0.0.2")),
    ],
    targets: [
        .target(
            ...,
            dependencies: [
                .package(product: "RoundedBorder", type: .runtime),
            ],

Usages

width

화면 기록 2024-05-07 오후 5 12 59

CornerRadius

화면 기록 2024-05-07 오후 5 18 23

position

스크린샷 2024-05-07 오후 5 27 07

in

스크린샷 2024-05-07 오후 5 29 16

out

스크린샷 2024-05-07 오후 5 30 00

About

roundedBorder modifier to draw border and inside/outside semi borders

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages