Post

Replies

Boosts

Views

Activity

Reply to Getting error when integrating binary framework in SPM, Does not contain expected binary artifact
I'm assuming that the correctness of the url is not the issue and only to hide where the *.zip actually located. Package example from the Apple docs here seem to align with your approach but that url scheme above is a bit concerning. Is your framework an XCFramework binary? // swift-tools-version:5.3 import PackageDescription let package = Package( name: "MyLibrary", platforms: [ .macOS(.v10_14), .iOS(.v13), .tvOS(.v13) ], products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: "MyLibrary", targets: ["MyLibrary", "SomeRemoteBinaryPackage", "SomeLocalBinaryPackage"]) ], dependencies: [ // Dependencies declare other packages that this package depends on. ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages this package depends on. .target( name: "MyLibrary" ), .binaryTarget( name: "SomeRemoteBinaryPackage", url: "https://url/to/some/remote/xcframework.zip", checksum: "The checksum of the ZIP archive that contains the XCFramework." ), .binaryTarget( name: "SomeLocalBinaryPackage", path: "path/to/some.xcframework" ) .testTarget( name: "MyLibraryTests", dependencies: ["MyLibrary"]), ] )
Topic: Graphics & Games SubTopic: General Tags:
Mar ’22
Reply to How can I use custom image instead of the ImagePicker in SwiftUI?
You can probably use a TabView to created a pageable carousel: TabView { ForEach(datasource, id:\.self) { data in NavigationLink(tag: company.id, selection: $currentSelection) { // The view to navigate on image selection SomeCustomViewToDisplayMoreData(data: data) } label: { Image(data.image) // you can probably give the image view a material back ground with rounded corners } } } .tabViewStyle(.page(indexDisplayMode: .always))
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’22
Reply to OpenVPNProvider
To use NETunnelProvider the following entitlements must exists com.apple.developer.networking.networkextension configured with one of the following options <key>com.apple.developer.networking.networkextension</key> <array> <string>app-proxy-provider</string> <string>content-filter-provider</string> <string>dns-proxy</string> <string>dns-settings</string> <string>packet-tunnel-provider</string> </array> https://developer.apple.com/documentation/networkextension/netunnelprovider
Topic: Programming Languages SubTopic: General Tags:
Mar ’22
Reply to How to use ForEach to increase number of rows in SwiftUI's Picker?
have a go at more documentation: ForEach(1..<31) conforms to the signature pattern for the Range type. A Range type is defined as an up to sequence and not an inclusive one. So when you provide ForEach(1...31), ClosedRange, there is no implementation to handle this signature. basically due to the fact arrays are zero based indices in C based type languages. https://developer.apple.com/documentation/swift/range
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’22