Post

Replies

Boosts

Views

Activity

Question about the feasibility of an app
Hello! I'm currently working on the iOS app for an armory management system. The function of this system is basically to manage the armory of a police station. All weapons in the armory are tagged with RFID tags and with the help of a scanner, the system keeps track of weapons taken in and out of the armory. The app also can be used to take inventory. This app cannot be used by the general public. It has an authentication flow and the only users will be law enforcement officers. Due to the nature of this app, it will have iconography and mentions of guns/weapons within the app. My question is, will that affect the app from getting accepted into the App Store? I've noticed there are apps like iGun Pro are available in the App Store but they're under Gaming. Can a normal app such as this be available in the App Store or will we have to go with an enterprise account and distribute the app outside of the App Store?
1
0
822
Jul ’21
Custom button not respecting the size defined in frame
Hi everyone, I created a custom ButtonStyle. struct ContentView: View { var body: some View { VStack { Button("Get Started") { print("button tapped") } .buttonStyle(PrimaryButtonStyle()) .frame(width: 320, height: 50) .border(.red, width: 1) } .padding() } } public struct PrimaryButtonStyle: ButtonStyle { @Environment(\.isEnabled) var isEnabled public func makeBody(configuration: Configuration) -> some View { configuration.label .fontWeight(.medium) .background(.green) .foregroundStyle(.white) .clipShape(RoundedRectangle(cornerRadius: 6)) .opacity(configuration.isPressed ? 0.8 : 1) .saturation(isEnabled ? 1 : 0) } } I used hat style on a button and also set a size using frame. But the background is not filling up to the size. You can see the frame is there (I added the red border to debug it) but the background is not filling it. I switched the positions of the modifiers on the button but that has no effect either. What am I missing here? Any help is appreciated. Thank uoi.
1
0
585
Dec ’23
Question about the feasibility of an app
Hello! I'm currently working on the iOS app for an armory management system. The function of this system is basically to manage the armory of a police station. All weapons in the armory are tagged with RFID tags and with the help of a scanner, the system keeps track of weapons taken in and out of the armory. The app also can be used to take inventory. This app cannot be used by the general public. It has an authentication flow and the only users will be law enforcement officers. Due to the nature of this app, it will have iconography and mentions of guns/weapons within the app. My question is, will that affect the app from getting accepted into the App Store? I've noticed there are apps like iGun Pro are available in the App Store but they're under Gaming. Can a normal app such as this be available in the App Store or will we have to go with an enterprise account and distribute the app outside of the App Store?
Replies
1
Boosts
0
Views
822
Activity
Jul ’21
Custom button not respecting the size defined in frame
Hi everyone, I created a custom ButtonStyle. struct ContentView: View { var body: some View { VStack { Button("Get Started") { print("button tapped") } .buttonStyle(PrimaryButtonStyle()) .frame(width: 320, height: 50) .border(.red, width: 1) } .padding() } } public struct PrimaryButtonStyle: ButtonStyle { @Environment(\.isEnabled) var isEnabled public func makeBody(configuration: Configuration) -> some View { configuration.label .fontWeight(.medium) .background(.green) .foregroundStyle(.white) .clipShape(RoundedRectangle(cornerRadius: 6)) .opacity(configuration.isPressed ? 0.8 : 1) .saturation(isEnabled ? 1 : 0) } } I used hat style on a button and also set a size using frame. But the background is not filling up to the size. You can see the frame is there (I added the red border to debug it) but the background is not filling it. I switched the positions of the modifiers on the button but that has no effect either. What am I missing here? Any help is appreciated. Thank uoi.
Replies
1
Boosts
0
Views
585
Activity
Dec ’23